services:
  app:
    build: .
    ports: ["8000:8000"]
    volumes: ["ca-data:/data"]
    restart: unless-stopped

  worker:
    build: .
    command: python run.py worker 300
    volumes: ["ca-data:/data"]
    depends_on: [app]
    restart: unless-stopped

volumes:
  ca-data:
