forked from rnadigital/agentcloud
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
72 lines (68 loc) · 1.64 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.7'
services:
docker_mongo:
restart: always
image: mongo:latest
ports:
- "127.0.0.1:27017:27017"
docker_redis:
restart: always
image: redis:latest
ports:
- "127.0.0.1:6379:6379"
volumes:
- redis_data:/data
webapp_next:
restart: always
build:
context: webapp/
args:
- GOOGLE_KEYPATH=keyfile.json
- SHORT_COMMIT_HASH=${SHORT_COMMIT_HASH}
ports:
- "127.0.0.1:3000:3000"
depends_on:
- docker_mongo
- docker_redis
environment:
- NODE_ENV=development
- DB_URL=mongodb://docker_mongo:27017/test
- REDIS_HOST=docker_redis
- REDIS_PASS=
- JWT_SECRET=changeme
- COOKIE_SECRET=changeme
- PROJECT_ID=
- FROM_EMAIL_ADDRESS=noreply@agentcloud.dev
- URL_APP=http://localhost:3000
- DEBUG=webapp:*
healthcheck:
test: ["CMD", "curl", "http://localhost:3000"]
start_period: 5s
timeout: 5s
retries: 10
agent_backend:
restart: always
build:
context: agent-backend/
args:
- GOOGLE_KEYPATH=keyfile.json
- SHORT_COMMIT_HASH=${SHORT_COMMIT_HASH}
ports:
- '127.0.0.1:8080:8080'
image: agent_backend
depends_on:
webapp_next:
condition: service_healthy
environment:
- LOCAL=True
- MAX_THREADS=50
- OAI_CONFIG_LIST=/app/config/OAI_CONFIG_LIST.json
- BASE_PATH=/app
- SOCKET_URL=http://webapp_next:3000/
- DB_URL=mongodb://docker_mongo:27017/test
- MONGO_DB_NAME=test
- OPENAI_API_KEY=changeme
- MAX_RETRIES=10
volumes:
mongodb_data_container:
redis_data: