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:
|
services:
|
||||||
lang-agent-api:
|
xiaozhan:
|
||||||
build: .
|
<<: *common-config
|
||||||
container_name: lang-agent-api
|
container_name: xiaozhan
|
||||||
|
command: ["python", "fastapi_server/server_dashscope.py"]
|
||||||
ports:
|
ports:
|
||||||
- "8588:8588"
|
- "8590:8588"
|
||||||
env_file:
|
|
||||||
- ./.env
|
blueberry:
|
||||||
environment:
|
<<: *common-config
|
||||||
- PYTHONPATH=/app
|
container_name: blueberry
|
||||||
- PYTHONUNBUFFERED=1
|
command: ["python", "fastapi_server/server_dashscope.py", "react", "--sys-prompt-f", "configs/prompts/blueberry.txt"]
|
||||||
volumes:
|
ports:
|
||||||
- ./configs:/app/configs
|
- "8589:8588"
|
||||||
- ./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
|
|
||||||
Reference in New Issue
Block a user