From 48bba624330bd474c1b5e6acd3dfbefe0a0278f3 Mon Sep 17 00:00:00 2001 From: huangzhuang_3rd Date: Wed, 12 Aug 2026 13:31:08 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20AI=20Worker=20=E5=B9=B3=E5=8F=B0=20MVP?= =?UTF-8?q?=20v1.0.0=20-=20=E5=A4=9A=E7=A7=9F=E6=88=B7/=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E7=AE=A1=E7=90=86/AI=20Worker/=E4=BB=BB=E5=8A=A1=E7=BC=96?= =?UTF-8?q?=E6=8E=92/HITL=E5=AE=A1=E6=A0=B8/=E6=88=90=E6=9C=AC=E6=B2=BB?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.yml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..631fb86 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,40 @@ +version: '3.8' + +services: + backend: + build: ./backend + ports: + - "8000:8000" + environment: + - DATABASE_URL=postgresql://aiworker:aiworker123@db:5432/ai_worker + - SECRET_KEY=production-secret-change-me + - DEFAULT_LLM_API_KEY=${LLM_API_KEY:-} + - DEFAULT_LLM_BASE_URL=${LLM_BASE_URL:-https://api.openai.com/v1} + - DEFAULT_LLM_MODEL=${LLM_MODEL:-gpt-4o-mini} + - CORS_ORIGINS=http://localhost:5173,http://localhost:3000,http://localhost:80 + depends_on: + - db + restart: unless-stopped + + frontend: + build: ./frontend + ports: + - "3000:80" + depends_on: + - backend + restart: unless-stopped + + db: + image: postgres:16-alpine + environment: + POSTGRES_USER: aiworker + POSTGRES_PASSWORD: aiworker123 + POSTGRES_DB: ai_worker + volumes: + - pgdata:/var/lib/postgresql/data + ports: + - "5432:5432" + restart: unless-stopped + +volumes: + pgdata: