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,12 +1,11 @@
|
|||||||
# Archivo: docker-compose.yaml
|
# Archivo: docker-compose.yaml
|
||||||
# Version: 1.6 - Final Syntax-Proof
|
# Version: 1.7 - DEBUGGING
|
||||||
# Descripción: Versión final con la sintaxis de montaje de volúmenes corregida
|
# Descripción: Versión para depuración SIN healthcheck en la base de datos.
|
||||||
# para compatibilidad total con Coolify y Docker.
|
# Esto nos permitirá ver el error real de inicialización.
|
||||||
|
|
||||||
version: '3.8'
|
version: '3.8'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
#--- N8N SERVICE ---#
|
|
||||||
n8n_app:
|
n8n_app:
|
||||||
image: docker.n8n.io/n8nio/n8n:latest
|
image: docker.n8n.io/n8nio/n8n:latest
|
||||||
container_name: n8n_service
|
container_name: n8n_service
|
||||||
@@ -15,14 +14,8 @@ services:
|
|||||||
- n8n_data:/home/node/.n8n
|
- n8n_data:/home/node/.n8n
|
||||||
depends_on:
|
depends_on:
|
||||||
pg_database:
|
pg_database:
|
||||||
condition: service_healthy
|
condition: service_started # CAMBIO: Espera a que inicie, no a que esté saludable.
|
||||||
healthcheck:
|
|
||||||
test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:5678/healthz || exit 1"]
|
|
||||||
interval: 30s
|
|
||||||
timeout: 10s
|
|
||||||
retries: 5
|
|
||||||
|
|
||||||
#--- EVOLUTION API SERVICE ---#
|
|
||||||
evolution_api:
|
evolution_api:
|
||||||
image: atendai/evolution-api:latest
|
image: atendai/evolution-api:latest
|
||||||
container_name: evolution_api_service
|
container_name: evolution_api_service
|
||||||
@@ -33,21 +26,14 @@ services:
|
|||||||
- redis_cache
|
- redis_cache
|
||||||
- pg_database
|
- pg_database
|
||||||
|
|
||||||
#--- SHARED POSTGRESQL DATABASE ---#
|
|
||||||
pg_database:
|
pg_database:
|
||||||
image: postgres:16-alpine
|
image: postgres:16-alpine
|
||||||
container_name: shared_postgres_db
|
container_name: shared_postgres_db
|
||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
# SINTAXIS CORREGIDA: Asegura que Coolify entienda esto como un montaje de archivo.
|
|
||||||
- ./init-db.sh:/docker-entrypoint-initdb.d/init-db.sh
|
- ./init-db.sh:/docker-entrypoint-initdb.d/init-db.sh
|
||||||
healthcheck:
|
# LA SECCIÓN healthcheck HA SIDO ELIMINADA DE AQUÍ PARA DEPURAR
|
||||||
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
|
|
||||||
interval: 10s
|
|
||||||
timeout: 5s
|
|
||||||
retries: 5
|
|
||||||
|
|
||||||
#--- SHARED REDIS CACHE ---#
|
|
||||||
redis_cache:
|
redis_cache:
|
||||||
image: redis:7-alpine
|
image: redis:7-alpine
|
||||||
container_name: shared_redis_cache
|
container_name: shared_redis_cache
|
||||||
@@ -58,10 +44,6 @@ services:
|
|||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
n8n_data:
|
n8n_data:
|
||||||
driver: local
|
|
||||||
evolution_instances:
|
evolution_instances:
|
||||||
driver: local
|
|
||||||
postgres_data:
|
postgres_data:
|
||||||
driver: local
|
|
||||||
evolution_redis:
|
evolution_redis:
|
||||||
driver: local
|
|
||||||
|
|||||||
Reference in New Issue
Block a user