From d9beba154e307f8da1e0692cbd361e2bcb7605fb Mon Sep 17 00:00:00 2001 From: goulustis Date: Fri, 6 Feb 2026 11:43:27 +0800 Subject: [PATCH] start viewer as well --- docker-compose.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 6fd8589..5cedfbf 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -12,6 +12,7 @@ x-common-config: &common-config - ./configs:/app/configs - ./scripts:/app/scripts - ./assets:/app/assets + - ./static:/app/static healthcheck: test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://0.0.0.0:8588/health')"] interval: 30s @@ -34,4 +35,17 @@ services: "react", "--sys-prompt-f", "configs/prompts/blueberry.txt", "--tool-manager-config.client-tool-manager.tool-keys"] ports: - - "8589:8588" \ No newline at end of file + - "8589:8588" + + viewer: + <<: *common-config + container_name: viewer + command: ["python", "fastapi_server/server_viewer.py"] + ports: + - "8590:8590" + healthcheck: + test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://0.0.0.0:8590/health')"] + interval: 30s + timeout: 10s + retries: 3 + start_period: 40s \ No newline at end of file