-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathcore.prod.yml
More file actions
45 lines (42 loc) · 979 Bytes
/
core.prod.yml
File metadata and controls
45 lines (42 loc) · 979 Bytes
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
version: "3.4"
services:
mongodb:
image: mongo:4.4
volumes:
- botcoremongodata:/data/db
ports:
- "127.0.0.1:27017:27017"
healthcheck:
test: echo 'db.runCommand("ping").ok' | mongo 127.0.0.1:27017/test --quiet
interval: 10s
timeout: 10s
retries: 5
start_period: 10s
rabbitmq:
image: rabbitmq:3-management-alpine
volumes:
- botcorerabbitdata:/data/db
ports:
- "127.0.0.1:5672:5672"
- "127.0.0.1:15672:15672"
healthcheck:
test: [ "CMD", "nc", "-z", "127.0.0.1", "5672" ]
interval: 10s
timeout: 10s
retries: 5
codex-bot-core:
image: codexteamuser/codex-bot-core:stage
command: python main.py
restart: on-failure
env_file:
- .env
depends_on:
mongodb:
condition: service_healthy
rabbitmq:
condition: service_healthy
ports:
- "127.0.0.1:1337:1337"
volumes:
botcoremongodata:
botcorerabbitdata: