services: # Main web application web: build: . ports: - "5000:5000" volumes: - ./data:/app/data:rw environment: - FLASK_ENV=production - FLASK_HOST=0.0.0.0 - FLASK_PORT=5000 - DATABASE_URL=/app/data/activities.db - SECRET_KEY=${SECRET_KEY:-production-secret-key-change-me} restart: unless-stopped healthcheck: test: ["CMD", "curl", "-f", "http://localhost:5000/health"] interval: 30s timeout: 10s retries: 3 start_period: 60s networks: - app-network networks: app-network: driver: bridge volumes: app-data: driver: local