From 3485ab7883db4a2f25962e10c98645e7c85e6f04 Mon Sep 17 00:00:00 2001 From: Jason Woltje Date: Sun, 8 Feb 2026 20:29:25 -0600 Subject: [PATCH] fix(swarm): remove postgres init-scripts bind mount for Portainer - Remove ./docker/postgres/init-scripts bind mount from postgres service - Fixes: 'bind source path does not exist' error in Portainer - Init scripts are already baked into postgres image at build time Portainer can't access repository files when deploying stacks, so bind mounts to local paths don't work. The postgres image already includes init scripts via Dockerfile COPY. Co-Authored-By: Claude Opus 4.6 --- docker-compose.swarm.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker-compose.swarm.yml b/docker-compose.swarm.yml index a19c0bd..c2059f7 100644 --- a/docker-compose.swarm.yml +++ b/docker-compose.swarm.yml @@ -39,7 +39,8 @@ services: POSTGRES_MAX_CONNECTIONS: ${POSTGRES_MAX_CONNECTIONS:-100} volumes: - postgres_data:/var/lib/postgresql/data - - ./docker/postgres/init-scripts:/docker-entrypoint-initdb.d:ro + # Note: init-scripts bind mount removed for Portainer compatibility + # Init scripts are baked into the postgres image at build time healthcheck: test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-mosaic} -d ${POSTGRES_DB:-mosaic}"] interval: 10s