diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index 10ec328..4fc40fa 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -10,7 +10,7 @@ services: dockerfile: Dockerfile args: - APP_ENV=production - container_name: whatsapp-app + # container_name: NO definir — Coolify asigna su propio nombre restart: always # Coolify/Traefik gestiona el enrutamiento - no exponer puertos directamente expose: @@ -55,13 +55,13 @@ services: - PHP_OPCACHE_ENABLE=1 networks: - - whatsapp-network + - coolify healthcheck: - test: ["CMD", "curl", "-f", "http://localhost/health.php"] + test: ["CMD-SHELL", "curl -sf http://localhost/health.php || exit 1"] interval: 30s - timeout: 5s + timeout: 10s retries: 3 - start_period: 30s + start_period: 60s # Redis: gestionado como Database Resource en Coolify (externo) # Worker: corre dentro del contenedor app vía Supervisor @@ -74,5 +74,5 @@ volumes: driver: local networks: - whatsapp-network: - driver: bridge + coolify: + external: true