different services
This commit is contained in:
@@ -1,9 +1,8 @@
|
|||||||
services:
|
# Define a reusable base service configuration
|
||||||
lang-agent-api:
|
x-common-config: &common-config
|
||||||
|
image: lang_agent:latest
|
||||||
build: .
|
build: .
|
||||||
container_name: lang-agent-api
|
restart: unless-stopped
|
||||||
ports:
|
|
||||||
- "8588:8588"
|
|
||||||
env_file:
|
env_file:
|
||||||
- ./.env
|
- ./.env
|
||||||
environment:
|
environment:
|
||||||
@@ -13,10 +12,24 @@ services:
|
|||||||
- ./configs:/app/configs
|
- ./configs:/app/configs
|
||||||
- ./scripts:/app/scripts
|
- ./scripts:/app/scripts
|
||||||
- ./assets:/app/assets
|
- ./assets:/app/assets
|
||||||
restart: unless-stopped
|
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8588/health')"]
|
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8588/health')"]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 3
|
retries: 3
|
||||||
start_period: 40s
|
start_period: 40s
|
||||||
|
|
||||||
|
services:
|
||||||
|
xiaozhan:
|
||||||
|
<<: *common-config
|
||||||
|
container_name: xiaozhan
|
||||||
|
command: ["python", "fastapi_server/server_dashscope.py"]
|
||||||
|
ports:
|
||||||
|
- "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"
|
||||||
Reference in New Issue
Block a user