-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
47 lines (43 loc) · 914 Bytes
/
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
version: "3.8"
services:
mongo_db:
container_name: mongo_db
image: mongo:4.4.2-bionic
restart: always
env_file:
- .env
volumes:
- mongo_data:/data/db
ports:
- 27017:27017
data_receiver:
container_name: data_receiver
image: gr1902/data_manager
build:
context: .
dockerfile: Dockerfile
env_file:
- .env
command: python start_receiver.py --config config.yaml
volumes:
- ./logs/:/home/user/app/logs
restart: on-failure
depends_on:
- mongo_db
data_checker:
container_name: data_checker
image: gr1902/data_manager
build:
context: .
dockerfile: Dockerfile
env_file:
- .env
command: python start_checker.py --config config.yaml
volumes:
- ./logs/:/home/user/app/logs
restart: on-failure
depends_on:
- mongo_db
volumes:
mongo_data:
redis_data: