-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose.yml
72 lines (72 loc) · 2.31 KB
/
docker-compose.yml
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
version: '3.3'
services:
embedding:
image: registry.cn-hangzhou.aliyuncs.com/agentcraft/agentcraft-embedding:v1
container_name: embedding
restart: always
ports: # 生产环境建议不要暴露
- 8001:8000
networks:
- agentcraft
pg:
image: registry.cn-hangzhou.aliyuncs.com/agentcraft/agentcraft-pg:v1
container_name: pg
restart: always
ports: # 生产环境建议不要暴露
- 5432:5432
networks:
- agentcraft
environment:
# 这里的配置只有首次运行生效。修改后,重启镜像是不会生效的。需要把持久化数据删除再重启,才有效果
- POSTGRES_USER=agentcraft
- POSTGRES_PASSWORD=agentcraft@001
- POSTGRES_DB=agentcraft
volumes:
- ./postgresql/data:/var/lib/postgresql/data
agentcraft-backend:
container_name: agentcraft-backend
image: registry.cn-hangzhou.aliyuncs.com/agentcraft/agentcraft-be:v1 # 阿里云
ports:
- 8000:8000
networks:
- agentcraft
depends_on:
- pg
- embedding
restart: always
environment:
- CREATE_TABLES=1
- EMBEDDING_DIM=1024
- EMBEDDING_TIMEOUT=1024
- EMBEDDING_TOKEN=
- EMBEDDING_URL=http://embedding:8000/embedding
- JWT_SECRET=agentcraft
- POSTGRES_DATABASE=agentcraft
- POSTGRES_HOST=pg
- POSTGRES_USER=agentcraft
- POSTGRES_PASSWORD=agentcraft@001
- REGION=cn-hangzhou
- MAIN_ACCOUNT_ID= #阿里云账号uid
- ALIBABA_CLOUD_ACCESS_KEY_ID= #阿里云账号AK,注意信息安全
- ALIBABA_CLOUD_ACCESS_KEY_SECRET= #阿里云账号SK,注意信息安全
agentcraft-frontend:
container_name: agentcraft-frontend
image: registry.cn-hangzhou.aliyuncs.com/agentcraft/agentcraft-fe:v1
ports:
- 3000:3000
depends_on:
- agentcraft-backend
networks:
- agentcraft
restart: always
environment:
- baseUrl=http://agentcraft-backend:8000
- openApiUrl=agentcraft-backend:8000
- DEPLOY_TYPE=private # 部署方式为私有化
- Region=cn-hangzhou
- MAIN_ACCOUNT_ID= #阿里云账号uid
- ALIBABA_CLOUD_ACCESS_KEY_ID= #阿里云账号AK ,注意信息安全
- ALIBABA_CLOUD_ACCESS_KEY_SECRET= #阿里云账号SK,注意信息安全
networks:
agentcraft:
# driver: bridge