This repository has been archived by the owner on Jun 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
124 lines (115 loc) · 2.43 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
version: '3.5'
services:
rabbitmq:
image: rabbitmq:3.6.15
ports:
- "15672:15672"
- "5672:5672"
labels:
NAME: "rabbitmq"
environment:
- RABBITMQ_ERLANG_COOKIE=SWQOKODSQALRPCLNMEQG
- RABBITMQ_DEFAULT_USER=rabbitmq
- RABBITMQ_DEFAULT_PASS=rabbitmq
env_file:
- variables.env
volumes:
- "./local_queue/enabled_plugins:/etc/rabbitmq/enabled_plugins"
networks:
- delphi
db:
image: postgres
env_file:
- variables.env
ports:
- "5432:5432"
networks:
- delphi
redis:
image: "redis"
ports:
- "6379:6379"
networks:
- delphi
delphi_api:
build:
context: ./delphi_api
dockerfile: Dockerfile
restart: always
env_file:
- variables.env
volumes:
- ./delphi_api:/usr/src/app
ports:
- "5000:5000"
networks:
- delphi
depends_on:
- db
delphi_subscriber:
build:
context: ./delphi_api
dockerfile: Dockerfile
restart: always
env_file:
- variables.env
command: bash -c "PYTHONPATH=/usr/src/app && sleep 15 && python3 app/event_processor/main.py"
volumes:
- ./delphi_api:/usr/src/app
depends_on:
- rabbitmq
networks:
- delphi
contract_subscriber:
build:
context: ./contract_subscriber
restart: always
env_file:
- variables.env
command: bash -c "sleep 20 && npm install && npm run contract"
volumes:
- ./contract_subscriber:/usr/src/app
- /usr/src/app/node_modules
networks:
- delphi
stdin_open: true
tty: true
depends_on:
- rabbitmq
- redis
factory_subscriber:
build:
context: ./contract_subscriber
restart: always
env_file:
- variables.env
command: bash -c "npm install && npm run factory"
volumes:
- ./contract_subscriber:/usr/src/app
- /usr/src/app/node_modules
networks:
- delphi
stdin_open: true
tty: true
depends_on:
- rabbitmq
- redis
# mock_contract_subscriber:
# build:
# context: ./mock_contract_subscriber
# restart: always
# env_file:
# - variables.env
# #command: npm start
# volumes:
# - ./mock_contract_subscriber:/usr/src/app
# - /usr/src/app/node_modules
# depends_on:
# - rabbitmq
# stdin_open: true
# tty: true
# networks:
# - delphi
networks:
delphi:
name: delphi