Spaces:
Running
Running
File size: 1,050 Bytes
227c43a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | version: '3.8'
services:
quantum-app:
build:
context: .
dockerfile: Dockerfile
ports:
- "5000:8080"
environment:
- FLASK_ENV=development
- PORT=8080
- HOST=0.0.0.0
volumes:
- ./logs:/app/logs
- ./plugins:/app/plugins
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/api/plugins"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
# Optional: Add Redis for caching
# redis:
# image: redis:7-alpine
# ports:
# - "6379:6379"
# restart: unless-stopped
# Optional: Add PostgreSQL for persistence
# postgres:
# image: postgres:15-alpine
# environment:
# POSTGRES_DB: quantumfieldkit
# POSTGRES_USER: quantum
# POSTGRES_PASSWORD: quantum_password
# ports:
# - "5432:5432"
# volumes:
# - postgres_data:/var/lib/postgresql/data
# restart: unless-stopped
# volumes:
# postgres_data:
|