forked from OpenBMB/XAgent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
81 lines (74 loc) · 1.85 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
73
74
75
76
77
78
79
80
81
version: '3'
services:
ToolServerManager:
image: tool-server-manager:0.2
build:
context: ./
dockerfile: dockerfiles/ToolServerManager/Dockerfile
ports:
- 8080:8080
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
DB_HOST: db
DB_PORT: 27017
DB_USERNAME: ${DB_USERNAME}
DB_PASSWORD: ${DB_PASSWORD}
DB_COLLECTION: ${DB_COLLECTION}
depends_on:
- db
command: ["--workers","4","-t","600"]
# This will create a test node that will never be used by XAgent
ToolServerNode:
image: tool-server-node:0.2
build:
context: ./
dockerfile: dockerfiles/ToolServerNode/Dockerfile
entrypoint: /bin/sh -c 'echo "Build complete. Exiting..." && exit 0'
command: echo "Build complete. Exiting..."
ToolServerMonitor:
image: tool-server-monitor:0.1
build:
context: ./
dockerfile: dockerfiles/ToolServerMonitor/Dockerfile
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
DB_HOST: db
DB_PORT: 27017
DB_USERNAME: ${DB_USERNAME}
DB_PASSWORD: ${DB_PASSWORD}
DB_COLLECTION: ${DB_COLLECTION}
depends_on:
- db
db:
image: mongo
restart: always
volumes:
- xagentmongodb:/data/db
environment:
MONGO_INITDB_ROOT_USERNAME: ${DB_USERNAME}
MONGO_INITDB_ROOT_PASSWORD: ${DB_PASSWORD}
logging:
driver: "none"
XAgentServer:
image: xagent-server:0.3
build:
context: ./
dockerfile: dockerfiles/XAgentServer/Dockerfile
container_name: XAgent-Server
env_file:
- .env
environment:
- TOOLSERVER_URL=http://ToolServerManager:8080
volumes:
- ./assets:/app/assets:ro
ports:
- "5173:5173"
- "8090:8090"
volumes:
xagentmongodb:
networks:
default:
name: tool-server-network
driver: bridge