Docker: agregar servicio Redis para sesiones PHP
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
1c75da1ccd
commit
3490bc1932
+6
-4
@@ -21,8 +21,7 @@ services:
|
|||||||
- DB_NAME=${DB_NAME}
|
- DB_NAME=${DB_NAME}
|
||||||
- DB_USER=${DB_USER}
|
- DB_USER=${DB_USER}
|
||||||
- DB_PASS=${DB_PASS}
|
- DB_PASS=${DB_PASS}
|
||||||
# Redis gestionado por Coolify — configurar REDIS_HOST en env vars de Coolify
|
- REDIS_HOST=${REDIS_HOST:-redis}
|
||||||
- REDIS_HOST=${REDIS_HOST:-127.0.0.1}
|
|
||||||
- REDIS_PORT=${REDIS_PORT:-6379}
|
- REDIS_PORT=${REDIS_PORT:-6379}
|
||||||
- REDIS_PASSWORD=${REDIS_PASSWORD:-}
|
- REDIS_PASSWORD=${REDIS_PASSWORD:-}
|
||||||
- WHATSAPP_TOKEN=${WHATSAPP_TOKEN}
|
- WHATSAPP_TOKEN=${WHATSAPP_TOKEN}
|
||||||
@@ -72,8 +71,11 @@ services:
|
|||||||
# start_period: 30s
|
# start_period: 30s
|
||||||
# command: --default-authentication-plugin=mysql_native_password --max_connections=500
|
# command: --default-authentication-plugin=mysql_native_password --max_connections=500
|
||||||
|
|
||||||
# Redis: gestionado como Database Resource en Coolify (externo)
|
redis:
|
||||||
# Worker: corre dentro del contenedor app vía Supervisor
|
image: redis:7-alpine
|
||||||
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
- coolify
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
app-logs:
|
app-logs:
|
||||||
|
|||||||
Reference in New Issue
Block a user