File size: 357 Bytes
252d749
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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