fix(martin): bake config into image via Dockerfile (Portainer volume mount fix)

Portainer CE deploys only docker-compose.yml — ./martin.yaml not present on host,
so Docker creates an empty directory instead of mounting the file. Solution: COPY
martin.yaml into the image at build time, eliminating the volume dependency.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
AI Assistant
2026-03-27 11:18:30 +02:00
parent a83f9e63b9
commit 675b1e51dd
2 changed files with 5 additions and 3 deletions
+3 -3
View File
@@ -102,7 +102,9 @@ services:
start_period: 10s start_period: 10s
martin: martin:
image: ghcr.io/maplibre/martin:1.4.0 build:
context: .
dockerfile: martin.Dockerfile
container_name: martin container_name: martin
restart: unless-stopped restart: unless-stopped
ports: ports:
@@ -110,5 +112,3 @@ services:
command: ["--config", "/config/martin.yaml"] command: ["--config", "/config/martin.yaml"]
environment: environment:
- DATABASE_URL=postgresql://architools_user:stictMyFon34!_gonY@10.10.10.166:5432/architools_db - DATABASE_URL=postgresql://architools_user:stictMyFon34!_gonY@10.10.10.166:5432/architools_db
volumes:
- ./martin.yaml:/config/martin.yaml:ro
+2
View File
@@ -0,0 +1,2 @@
FROM ghcr.io/maplibre/martin:1.4.0
COPY martin.yaml /config/martin.yaml