From 675b1e51dd8adae399a63f9c15f944f0de4069db Mon Sep 17 00:00:00 2001 From: AI Assistant Date: Fri, 27 Mar 2026 11:18:30 +0200 Subject: [PATCH] fix(martin): bake config into image via Dockerfile (Portainer volume mount fix) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- docker-compose.yml | 6 +++--- martin.Dockerfile | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 martin.Dockerfile diff --git a/docker-compose.yml b/docker-compose.yml index 5847bfb..ce7e51f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 diff --git a/martin.Dockerfile b/martin.Dockerfile new file mode 100644 index 0000000..5307578 --- /dev/null +++ b/martin.Dockerfile @@ -0,0 +1,2 @@ +FROM ghcr.io/maplibre/martin:1.4.0 +COPY martin.yaml /config/martin.yaml