version: 1 services: app: build: . command: uvicorn App.app:app --host 0.0.0.0 --port 8000 environment: - DATABASE_URL=postgresql://user:password@db:5432/mydatabase ports: - 8000:8000 worker: build: . command: celery -A App.Worker.celery worker -c 1 --loglevel=info resources: memory: 3Gi cpu: 1000m