Spaces:
Sleeping
Sleeping
| # docker-compose.quantum.yml | |
| version: '3.8' | |
| services: | |
| redis: | |
| image: redis:7-alpine | |
| ports: ["6379:6379"] | |
| command: redis-server --appendonly yes --requirepass ${REDIS_PASSWORD} | |
| postgres: | |
| image: postgres:15-alpine | |
| environment: | |
| POSTGRES_DB: mate | |
| POSTGRES_USER: mate | |
| POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} | |
| volumes: | |
| - pg-data:/var/lib/postgresql/data | |
| celery-worker: | |
| build: . | |
| command: celery -A app.celery_quantum_executor.app worker --loglevel=info --concurrency=10 | |
| environment: | |
| - DATABASE_URL=${POSTGRES_URL} | |
| - REDIS_URL=${REDIS_URL} | |
| api: | |
| build: . | |
| command: uvicorn app:app --host 0.0.0.0 --port 8000 --workers 4 --loop uvloop | |
| ports: ["8000:8000"] | |
| environment: | |
| - DATABASE_URL=${POSTGRES_URL} | |
| - REDIS_URL=${REDIS_URL} | |
| - POLYGON_RPC_URL=${POLYGON_RPC_URL} | |
| - PRIVATE_KEY=${PRIVATE_KEY} | |
| prometheus: | |
| image: prom/prometheus:latest | |
| ports: ["9090:9090"] | |
| grafana: | |
| image: grafana/grafana:latest | |
| ports: ["3001:3000"] |