From 070cecfcf99a6314e148b73f5ddc7e7fabdab464 Mon Sep 17 00:00:00 2001 From: goulustis Date: Mon, 26 Jan 2026 17:39:18 +0800 Subject: [PATCH] different services --- docker-compose.yml | 53 +++++++++++++++++++++++++++++----------------- 1 file changed, 33 insertions(+), 20 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 2179c9b..96806c9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,22 +1,35 @@ +# Define a reusable base service configuration +x-common-config: &common-config + image: lang_agent:latest + build: . + restart: unless-stopped + env_file: + - ./.env + environment: + - PYTHONPATH=/app + - PYTHONUNBUFFERED=1 + volumes: + - ./configs:/app/configs + - ./scripts:/app/scripts + - ./assets:/app/assets + healthcheck: + test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8588/health')"] + interval: 30s + timeout: 10s + retries: 3 + start_period: 40s + services: - lang-agent-api: - build: . - container_name: lang-agent-api + xiaozhan: + <<: *common-config + container_name: xiaozhan + command: ["python", "fastapi_server/server_dashscope.py"] ports: - - "8588:8588" - env_file: - - ./.env - environment: - - PYTHONPATH=/app - - PYTHONUNBUFFERED=1 - volumes: - - ./configs:/app/configs - - ./scripts:/app/scripts - - ./assets:/app/assets - restart: unless-stopped - healthcheck: - test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8588/health')"] - interval: 30s - timeout: 10s - retries: 3 - start_period: 40s \ No newline at end of file + - "8590:8588" + + blueberry: + <<: *common-config + container_name: blueberry + command: ["python", "fastapi_server/server_dashscope.py", "react", "--sys-prompt-f", "configs/prompts/blueberry.txt"] + ports: + - "8589:8588" \ No newline at end of file