6aa0b235c3
- Deleted multiple unused SQL query files from the cms-service. - Refactored email template handling in the cms-service to improve clarity and maintainability. - Updated environment variable loading in both cms-service and lms-service to use dotenvy for better configuration management. - Added a new .env.dev file for local development with database and SMTP configurations. - Set default value for `certificates_enabled` in the shared common models.
43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
# docker-compose.local.yml — Override para desarrollo local
|
|
# Uso: docker compose -f docker-compose.yml -f docker-compose.local.yml [comando]
|
|
#
|
|
# Diferencias con producción:
|
|
# - nginx-proxy y acme-companion deshabilitados (profiles: production)
|
|
# - Puertos expuestos directamente al host
|
|
# - DB accesible en localhost:5433
|
|
|
|
services:
|
|
nginx-proxy:
|
|
profiles:
|
|
- production
|
|
|
|
acme-companion:
|
|
profiles:
|
|
- production
|
|
|
|
db:
|
|
ports:
|
|
- "5432:5432"
|
|
|
|
studio:
|
|
ports:
|
|
- "3000:3000"
|
|
- "3001:3001"
|
|
env_file: .env.dev
|
|
environment:
|
|
- NEXT_PUBLIC_CMS_API_URL=http://localhost:3001
|
|
- NEXT_PUBLIC_LMS_API_URL=http://localhost:3002/lms-api
|
|
- NEXT_PUBLIC_STUDIO_DOMAIN=localhost
|
|
- NEXT_PUBLIC_LEARNING_DOMAIN=localhost
|
|
|
|
experience:
|
|
ports:
|
|
- "3003:3003"
|
|
- "3002:3002"
|
|
env_file: .env.dev
|
|
environment:
|
|
- NEXT_PUBLIC_CMS_API_URL=http://localhost:3001
|
|
- NEXT_PUBLIC_LMS_API_URL=http://localhost:3002/lms-api
|
|
- NEXT_PUBLIC_STUDIO_DOMAIN=localhost
|
|
- NEXT_PUBLIC_LEARNING_DOMAIN=localhost
|