From 6da6dcd33ab4a4fb8936f5163e44457394ccbe48 Mon Sep 17 00:00:00 2001 From: agatha Date: Sun, 15 Mar 2026 15:30:59 -0400 Subject: [PATCH] build: add api, worker, and migrate services to docker-compose --- docker-compose.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) 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: