version: '3.8' | |
services: | |
daddytv: | |
build: . | |
ports: | |
- "8000:8000" | |
environment: | |
- MAIN_M3U_URL=${MAIN_M3U_URL} | |
- ADMIN_CODE=${ADMIN_CODE} | |
- AES_SECRET=${AES_SECRET} | |
- BASE_URL=${BASE_URL:-http://localhost:8000} | |
- PORT=8000 | |
env_file: | |
- .env | |
restart: unless-stopped | |
healthcheck: | |
test: ["CMD", "curl", "-f", "http://localhost:8000/api/health"] | |
interval: 30s | |
timeout: 10s | |
retries: 3 | |
start_period: 40s | |
volumes: | |
# Opcional: montar logs | |
- ./logs:/app/logs | |
networks: | |
- daddytv-network | |
networks: | |
daddytv-network: | |
driver: bridge |