mirror of
https://github.com/mblanke/Lottery-Tracker.git
synced 2026-03-01 14:10:22 -05:00
Version 1.1
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user