-
Notifications
You must be signed in to change notification settings - Fork 454
/
docker-compose.yml
66 lines (61 loc) · 1.48 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
version: "3.8"
services:
redis:
image: redis:7.2.2-alpine
restart: on-failure
mongodb:
image: mongo:7.0.2
restart: on-failure
healthcheck:
test: echo 'db.state().ok' | mongosh localhost:27017/test --quiet
interval: 10s
timeout: 10s
retries: 5
frontend:
build: ./frontend
image: openagents-frontend
ports:
- 3000:3000
depends_on:
- redis
- mongodb
- backend
# Necessary if you want the code executed in sandbox
# code_interpreter:
# image: xlanglab/xlang-code-interpreter-python
# env_file:
# - ./real_agents/data_agent/.code_interpreter_docker_env
# volumes:
# - backend-data:/home
# cap_add:
# - SYS_RESOURCE
# - SYS_PTRACE
# - NET_ADMIN
backend:
build: ./
image: openagents-backend
ports:
- 8000:8000
depends_on:
- redis
- mongodb
volumes:
- "backend-data:/app/backend/data"
environment:
- OPENAI_API_KEY= #need your key here
# - OPENAI_API_BASE=
- REDIS_SERVER=redis
- MONGO_SERVER=mongodb
- CODE_INTER_SERVER=code_interpreter
- CODE_EXECUTION_MODE=local #if code_interpreter running set docker,else local
# if you want to use gpu, uncomment the following lines
# deploy:
# resources:
# reservations:
# devices:
# - driver: nvidia
# device_ids: ['0']
# capabilities: [gpu]
volumes:
backend-data:
driver: local