mirror of
https://github.com/marcogll/coolify-n8n-evo.git
synced 2026-01-13 13:25:17 +00:00
refactor(compose): Use explicit bind mount syntax for init script
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
# Archivo: docker-compose.yaml
|
# Archivo: docker-compose.yaml
|
||||||
# Version: 2.2 - PRODUCTION READY (Final Syntax Verified)
|
# Version: 2.3 - Bulletproof Syntax
|
||||||
# Descripción: Versión final con la sintaxis de volúmenes y dependencias corregida
|
# Descripción: Versión final con sintaxis de montaje de volúmenes explícita para máxima robustez.
|
||||||
# para máxima compatibilidad y estabilidad.
|
|
||||||
|
|
||||||
version: '3.8'
|
version: '3.8'
|
||||||
|
|
||||||
@@ -34,7 +33,11 @@ services:
|
|||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- postgres_data:/var/lib/postgresql/data
|
- postgres_data:/var/lib/postgresql/data
|
||||||
- ./init-db.sh:/docker-entrypoint-initdb.d/init-db.sh
|
# SINTAXIS EXPLÍCITA PARA ELIMINAR AMBIGÜEDAD
|
||||||
|
- type: bind
|
||||||
|
source: ./init-db.sh
|
||||||
|
target: /docker-entrypoint-initdb.d/init-db.sh
|
||||||
|
read_only: true
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
|
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
|
|||||||
Reference in New Issue
Block a user