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
|
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
|
|
||||||
|
|||||||
@@ -0,0 +1,2 @@
|
|||||||
|
FROM ghcr.io/maplibre/martin:1.4.0
|
||||||
|
COPY martin.yaml /config/martin.yaml
|
||||||
Reference in New Issue
Block a user