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:
+3
-3
@@ -102,7 +102,9 @@ services:
|
||||
start_period: 10s
|
||||
|
||||
martin:
|
||||
image: ghcr.io/maplibre/martin:1.4.0
|
||||
build:
|
||||
context: .
|
||||
dockerfile: martin.Dockerfile
|
||||
container_name: martin
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
@@ -110,5 +112,3 @@ services:
|
||||
command: ["--config", "/config/martin.yaml"]
|
||||
environment:
|
||||
- DATABASE_URL=postgresql://architools_user:stictMyFon34!_gonY@10.10.10.166:5432/architools_db
|
||||
volumes:
|
||||
- ./martin.yaml:/config/martin.yaml:ro
|
||||
|
||||
Reference in New Issue
Block a user