mirror of
https://github.com/marcogll/coolify-n8n-evo.git
synced 2026-01-13 13:25:17 +00:00
Update docker-compose.yaml
This commit is contained in:
@@ -1,19 +1,19 @@
|
|||||||
# Archivo: docker-compose.yml
|
# Archivo: docker-compose.yml
|
||||||
# Version: 1.3-renamed-services
|
# Version: 1.4 - Final Fix
|
||||||
# Descripción: Stack limpio para Coolify con nombres de servicio personalizados para mayor claridad.
|
# Descripción: Corregido para asegurar que init-db.sh se monte como un archivo.
|
||||||
|
|
||||||
version: '3.8'
|
version: '3.8'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
#--- N8N SERVICE ---#
|
#--- N8N SERVICE ---#
|
||||||
n8n_app: ## CAMBIO ##
|
n8n_app:
|
||||||
image: docker.n8n.io/n8nio/n8n:latest
|
image: docker.n8n.io/n8nio/n8n:latest
|
||||||
container_name: n8n_service
|
container_name: n8n_service
|
||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- n8n_data:/home/node/.n8n
|
- n8n_data:/home/node/.n8n
|
||||||
depends_on:
|
depends_on:
|
||||||
pg_database: ## CAMBIO ##
|
pg_database:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:5678/healthz || exit 1"]
|
test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:5678/healthz || exit 1"]
|
||||||
@@ -22,28 +22,27 @@ services:
|
|||||||
retries: 5
|
retries: 5
|
||||||
|
|
||||||
#--- EVOLUTION API SERVICE ---#
|
#--- EVOLUTION API SERVICE ---#
|
||||||
evolution_api: ## CAMBIO ##
|
evolution_api:
|
||||||
image: atendai/evolution-api:latest
|
image: atendai/evolution-api:latest
|
||||||
container_name: evolution_api_service
|
container_name: evolution_api_service
|
||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- evolution_instances:/evolution/instances
|
- evolution_instances:/evolution/instances
|
||||||
depends_on:
|
depends_on:
|
||||||
- redis_cache ## CAMBIO ##
|
- redis_cache
|
||||||
- pg_database ## CAMBIO ##
|
- pg_database
|
||||||
|
|
||||||
#--- SHARED POSTGRESQL DATABASE ---#
|
#--- SHARED POSTGRESQL DATABASE ---#
|
||||||
pg_database: ## CAMBIO ##
|
pg_database:
|
||||||
image: postgres:16-alpine
|
image: postgres:16-alpine
|
||||||
container_name: shared_postgres_db
|
container_name: shared_postgres_db
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
# Estas variables son necesarias para la inicialización de la base de datos
|
|
||||||
- POSTGRES_USER=${POSTGRES_USER}
|
- POSTGRES_USER=${POSTGRES_USER}
|
||||||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
||||||
- POSTGRES_DB=${N8N_DB_NAME}
|
- POSTGRES_DB=${N8N_DB_NAME}
|
||||||
volumes:
|
volumes:
|
||||||
- postgres_data:/var/lib/postgresql/data
|
# ESTA ES LA LÍNEA CRÍTICA: Asegura que el archivo se monte, no un directorio.
|
||||||
- ./init-db.sh:/docker-entrypoint-initdb.d/init-db.sh
|
- ./init-db.sh:/docker-entrypoint-initdb.d/init-db.sh
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
|
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
|
||||||
@@ -52,7 +51,7 @@ services:
|
|||||||
retries: 5
|
retries: 5
|
||||||
|
|
||||||
#--- SHARED REDIS CACHE ---#
|
#--- SHARED REDIS CACHE ---#
|
||||||
redis_cache: ## CAMBIO ##
|
redis_cache:
|
||||||
image: redis:7-alpine
|
image: redis:7-alpine
|
||||||
container_name: shared_redis_cache
|
container_name: shared_redis_cache
|
||||||
restart: always
|
restart: always
|
||||||
|
|||||||
Reference in New Issue
Block a user