-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (42 loc) · 1.22 KB
/
docker-compose.yml
File metadata and controls
46 lines (42 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
services:
get-chat:
image: get-chat:latest
build:
context: .
dockerfile: Dockerfile
container_name: get-chat
ports:
- "7333:7333"
environment:
# AI 服务配置
- COPAW_ENDPOINT=http://copaw:8088/api/agent/process
# 基础 URL(用于生成会话链接)
- BASE_URL=http://localhost:7333
# 配置文件路径(可选,未设置则使用默认 config.yaml)
# - GETCHAT_CONFIG=/app/config.yaml
# Python 环境
- PYTHONUNBUFFERED=1
volumes:
# 挂载配置文件,方便自定义
# 挂载 config.yaml 或者 config.local.yaml 二选一
- ./config.yaml:/app/config.yaml:ro
# - ./config.local.yaml:/app/config.local.yaml:ro
networks:
- get-chat-network
- copaw-network
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:7333/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 5s
networks:
get-chat-network:
driver: bridge
name: get-chat-network
copaw-network:
driver: bridge
name: copaw-network
# 如果已经部署了 copaw 服务,可以去掉这行的注释,直接接入 copaw 网络
# external: true