-
Notifications
You must be signed in to change notification settings - Fork 8
/
core.yml
45 lines (42 loc) · 957 Bytes
/
core.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
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
container_name: rabbitmq
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:
build:
dockerfile: Dockerfile
context: .
command: python main.py
restart: on-failure
depends_on:
mongodb:
condition: service_healthy
rabbitmq:
condition: service_healthy
volumes:
- .:/home/app/
ports:
- "127.0.0.1:1337:1337"
volumes:
botcoremongodata: