refactor: unify env vars — no hardcoded credentials, LOG_LEVEL/SESSION from env
This commit is contained in:
@@ -13,7 +13,7 @@ services:
|
||||
MARIADB_ROOT_PASSWORD: ${DB_ROOT_PASSWORD:-root_password_2026}
|
||||
MARIADB_DATABASE: ${DB_NAME:-usite_whatsapp_bot}
|
||||
MARIADB_USER: ${DB_USER:-usite_whatsapp_user}
|
||||
MARIADB_PASSWORD: ${DB_PASS:-6q!Vio0fn@PFmsLyHjH5}
|
||||
MARIADB_PASSWORD: ${DB_PASS}
|
||||
TZ: America/Bogota
|
||||
volumes:
|
||||
- mysql-dev-data:/var/lib/mysql
|
||||
@@ -66,7 +66,7 @@ services:
|
||||
- DB_PORT=${DB_PORT:-3306}
|
||||
- DB_NAME=${DB_NAME:-usite_whatsapp_bot}
|
||||
- DB_USER=${DB_USER:-usite_whatsapp_user}
|
||||
- DB_PASS=${DB_PASS:-6q!Vio0fn@PFmsLyHjH5}
|
||||
- DB_PASS=${DB_PASS}
|
||||
|
||||
# Redis
|
||||
- REDIS_HOST=redis
|
||||
@@ -150,11 +150,11 @@ services:
|
||||
- DB_PORT=${DB_PORT:-3306}
|
||||
- DB_NAME=${DB_NAME:-usite_whatsapp_bot}
|
||||
- DB_USER=${DB_USER:-usite_whatsapp_user}
|
||||
- DB_PASS=${DB_PASS:-6q!Vio0fn@PFmsLyHjH5}
|
||||
- DB_PASS=${DB_PASS}
|
||||
- REDIS_HOST=redis
|
||||
- REDIS_PORT=6379
|
||||
- REDIS_PASSWORD=${REDIS_PASSWORD:-}
|
||||
- LOG_LEVEL=DEBUG
|
||||
- LOG_LEVEL=${LOG_LEVEL:-DEBUG}
|
||||
- XDEBUG_MODE=debug
|
||||
- XDEBUG_CONFIG=client_host=host.docker.internal client_port=9003
|
||||
depends_on:
|
||||
@@ -249,7 +249,7 @@ services:
|
||||
- DB_HOST=mysql
|
||||
- DB_NAME=${DB_NAME:-usite_whatsapp_bot}
|
||||
- DB_USER=${DB_USER:-usite_whatsapp_user}
|
||||
- DB_PASS=${DB_PASS:-6q!Vio0fn@PFmsLyHjH5}
|
||||
- DB_PASS=${DB_PASS}
|
||||
- REDIS_HOST=redis
|
||||
- REDIS_PORT=6379
|
||||
- APP_URL=http://app/health.php
|
||||
|
||||
Reference in New Issue
Block a user