Spaces:
Sleeping
Sleeping
File size: 1,055 Bytes
c9f2ba9 |
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 |
# 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"] |