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 <[email protected]>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user