-
Notifications
You must be signed in to change notification settings - Fork 18
/
docker-compose.yml
161 lines (143 loc) · 3.37 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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
version: "3.9"
services:
# Databases.
backoffice_backend_db:
image: mongo
volumes:
- ./data/db/backoffice-backend:/data/db
# application_db:
# image: mysql:5.7
# command: --default-authentication-plugin=mysql_native_password
# restart: always
# volumes:
# - ./data/db/application:/var/lib/mysql
# processor_db:
# image: mongo
# restart: always
# volumes:
# - ./data/db/processor:/data/db
storage_db:
image: mysql:5.7
ports:
- '3308:3306'
command: --default-authentication-plugin=mysql_native_password
restart: always
volumes:
- ./data/db/storage:/var/lib/mysql
monthly_db:
# Comment this one out when you need to connect to the db outside the
# container - useful when you want working locally.
# todo: add a virtual address to allow outside connection
ports:
- '3306:3306'
image: mysql:5.7
command: --default-authentication-plugin=mysql_native_password
restart: always
volumes:
- ./data/db/monthly:/var/lib/mysql
- ./monthly/mysql/open-pension.cnf:/etc/mysql/my.cnf
# Services.
gateway:
build:
context: ./gateway
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
ports:
- "80:80"
front:
build:
context: ./front
depends_on:
- monthly
backoffice:
build:
context: ./backoffice
depends_on:
- backoffice_backend
- gateway
backoffice_backend:
tty: true
build:
context: ./backoffice_backend
depends_on:
- backoffice_backend_db
- gateway
- kafka
- storage
# application:
# image: hasadna/open-pension-application:latest
# restart: always
# build:
# context: ./application
# cache_from:
# - hasadna/open-pension-application:latest
# depends_on:
# - application_db
# todo: Change to quarter
# processor:
# image: hasadna/open-pension-processor:latest
# restart: always
# build:
# context: ./processor
# cache_from:
# - hasadna/open-pension-processor:latest
# depends_on:
# - processor_db
# - kafka
kafka:
image: hasadna/open-pension-kafka:latest
restart: always
build:
context: ./kafka
cache_from:
- hasadna/open-pension-kafka:latest
environment:
- BROKER_ID=1
depends_on:
- zookeeper
kafka2:
image: hasadna/open-pension-kafka:latest
restart: always
environment:
- BROKER_ID=2
depends_on:
- zookeeper
zookeeper:
restart: always
image: zookeeper:3.5
# fetcher:
# image: hasadna/open-pension-fetcher:latest
# restart: always
# build:
# context: ./fetcher
# cache_from:
# - hasadna/open-pension-fetcher:latest
# depends_on:
# - kafka
storage:
image: hasadna/open-pension-storage:latest
restart: always
volumes:
- ./data/files/storage:/home/app/download_files
build:
context: ./storage
cache_from:
- hasadna/open-pension-storage:latest
depends_on:
- storage_db
- gateway
- kafka
monthly:
image: hasadna/open-pension-monthly:latest
restart: always
volumes:
- ./data/files/monthly:/home/app/uploaded_files
build:
context: ./monthly
cache_from:
- hasadna/open-pension-monthly:latest
depends_on:
- monthly_db
- gateway
- kafka
- storage