mirror of
https://github.com/marcogll/coolify-n8n-evo.git
synced 2026-01-13 13:25:17 +00:00
feat(deploy): Implement custom postgres build to fix init script
This commit is contained in:
@@ -29,14 +29,12 @@ services:
|
|||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
|
||||||
pg_database:
|
pg_database:
|
||||||
# ¡CAMBIO CLAVE! En lugar de 'image', usamos 'build'.
|
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile.postgres
|
dockerfile: Dockerfile.postgres
|
||||||
container_name: shared_postgres_db
|
container_name: shared_postgres_db
|
||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
# El montaje del script ya no es necesario aquí
|
|
||||||
- postgres_data:/var/lib/postgresql/data
|
- postgres_data:/var/lib/postgresql/data
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
|
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
|
||||||
|
|||||||
Reference in New Issue
Block a user