different services
This commit is contained in:
@@ -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
|
||||
- "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