-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.example.yml
47 lines (47 loc) · 1014 Bytes
/
docker-compose.example.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
version: "3.9"
services:
mongo:
image: mongo:latest
restart: always
volumes:
- ./data:/data/db
command: --quiet
parser:
build: ./parser
restart: always
healthcheck:
test: curl --fail http://parser:3000 || exit 1
interval: 5s
timeout: 10s
retries: 50
keeper:
build: ./keeper
restart: always
environment:
- MONGODB_URL=mongodb://mongo:27017
depends_on:
mongo:
condition: service_started
parser:
condition: service_healthy
bot:
build: ./bot
restart: always
environment:
- BOT_TOKEN=${BOT_TOKEN}
- MONGO_URL=mongodb://mongo:27017
- PARSER_URL=http://parser:3000
- KEEPER_URL=http://keeper:3000
depends_on:
parser:
condition: service_healthy
keeper:
condition: service_started
mongo:
condition: service_started
cron:
build: ./cron
restart: always
depends_on:
keeper:
condition: service_started