diff --git a/docker-compose.yml b/docker-compose.yml index ba3cc35..33705bf 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,4 +1,37 @@ services: + api: + build: . + ports: + - "8000:8000" + env_file: .env + depends_on: + postgres: + condition: service_healthy + redis: + condition: service_healthy + volumes: + - ./plugins-contrib:/app/plugins-contrib:ro + + worker: + build: . + command: ["arq", "proxy_pool.worker.settings.WorkerSettings"] + env_file: .env + depends_on: + postgres: + condition: service_healthy + redis: + condition: service_healthy + + migrate: + build: . + command: ["alembic", "upgrade", "head"] + env_file: .env + depends_on: + postgres: + condition: service_healthy + profiles: + - migrate + postgres: image: postgres:16-alpine environment: