Version 1.1

This commit is contained in:
2026-02-18 08:24:54 -05:00
parent 4318c8f642
commit fdba869a8d
33 changed files with 2142 additions and 1942 deletions

View File

@@ -9,14 +9,17 @@ services:
container_name: lottery-backend
ports:
- "5000:5000"
env_file:
- .env
environment:
- FLASK_ENV=production
- FLASK_DEBUG=false
- PYTHONUNBUFFERED=1
restart: unless-stopped
networks:
- lottery-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5000/api/health"]
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:5000/api/health')"]
interval: 30s
timeout: 10s
retries: 3
@@ -40,20 +43,6 @@ services:
networks:
- lottery-network
# Email Scheduler (Optional - runs daily at 7 AM)
email-scheduler:
build:
context: .
dockerfile: Dockerfile.email
container_name: lottery-email
environment:
- PYTHONUNBUFFERED=1
restart: unless-stopped
networks:
- lottery-network
profiles:
- email # Only start if explicitly requested
networks:
lottery-network:
driver: bridge