-
Notifications
You must be signed in to change notification settings - Fork 42
/
docker-compose.yml
234 lines (222 loc) · 6.31 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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
version: '3.2'
services:
redis:
image: redis:alpine
volumes:
- redis-data:/data
db:
image: postgres:12-alpine
environment:
- POSTGRES_DB=thenewboston_bank
- POSTGRES_USER=thenewboston
- POSTGRES_PASSWORD=thenewboston
- C_FORCE_ROOT=true
volumes:
- postgresql-data:/var/lib/postgresql/data
- ./scripts/docker_entrypoints/initdb.d:/docker-entrypoint-initdb.d
bank:
build:
dockerfile: Dockerfile_dev
context: .
environment:
- DJANGO_APPLICATION_ENVIRONMENT=local
- NETWORK_SIGNING_KEY=d2621d30bc323ea35fe1c4fb11b4babb7fd4c1c0593805f011caedf7b7ce0031
- NODE_IDENTIFIER=ce236a006a0aec488ad8e5161dd018b2ce84d9e4d9adc897eca7fb112864198f
- NODE_PORT=8004
- REDIS_DB=3
- REDIS_HOST=redis
- POSTGRES_HOST=db
- POSTGRES_DB=thenewboston_bank
- POSTGRES_USER=thenewboston
- POSTGRES_PASSWORD=thenewboston
- SECRET_KEY=somesecret
env_file:
- .env
entrypoint: /opt/project/scripts/docker_entrypoints/entrypoint.sh
volumes:
- .:/opt/project
- ./media/bank:/opt/project/media
ports:
- 8004:8000
links:
- pv
- db
- redis
depends_on:
- pv
- db
- redis
pv:
image: docker.pkg.github.com/thenewboston-developers/validator/validator:latest
environment:
- DJANGO_APPLICATION_ENVIRONMENT=local
- NETWORK_SIGNING_KEY=731f928711f30257d20bde471200c11975009415b4c6f596e7ee81bfed1a033b
- NODE_IDENTIFIER=ed3b6d8e7ba1819ccedb17f9a7427b8e76b22dccf2bc130fc2386daf86ec80d3
- NODE_PORT=8001
- REDIS_DB=0
- REDIS_HOST=redis
- POSTGRES_HOST=db
- POSTGRES_DB=thenewboston_pv
- POSTGRES_USER=thenewboston
- POSTGRES_PASSWORD=thenewboston
- SECRET_KEY=somesecret
env_file:
- .env
entrypoint: /opt/project/scripts/docker_entrypoints/entrypoint_pv.sh
volumes:
- ./media/pv:/opt/project/media
ports:
- 8001:8000
links:
- db
- redis
depends_on:
- db
- redis
cv1:
image: docker.pkg.github.com/thenewboston-developers/validator/validator:latest
environment:
- DJANGO_APPLICATION_ENVIRONMENT=local
- NETWORK_SIGNING_KEY=46a23fd52b2690f5acf56654489fd67b3734a52f35a2b7827f5caeaa06c0c0a5
- NODE_IDENTIFIER=8ecf3ff5cc8b6b9db7077f9776043b21d22a59544056add03bdfa4c8b35a13bd
- NODE_PORT=8002
- REDIS_DB=1
- REDIS_HOST=redis
- POSTGRES_HOST=db
- POSTGRES_DB=thenewboston_cv1
- POSTGRES_USER=thenewboston
- POSTGRES_PASSWORD=thenewboston
- SECRET_KEY=somesecret
env_file:
- .env
entrypoint: /opt/project/scripts/docker_entrypoints/entrypoint_cv.sh
volumes:
- ./media/cv1:/opt/project/media
ports:
- 8002:8000
links:
- pv
- db
- redis
depends_on:
- pv
- db
- redis
cv2:
image: docker.pkg.github.com/thenewboston-developers/validator/validator:latest
environment:
- DJANGO_APPLICATION_ENVIRONMENT=local
- NETWORK_SIGNING_KEY=1c7822c93d914ac40fc11d7bd71959d5aadb1ecd07fbffc7d9c481ccd043d4a9
- NODE_IDENTIFIER=73ca63ab2ab4ad8a2f48baa321bce17f8840f7355211b32a288b4e8c3e5a7a4d
- NODE_PORT=8003
- REDIS_DB=2
- REDIS_HOST=redis
- POSTGRES_HOST=db
- POSTGRES_DB=thenewboston_cv2
- POSTGRES_USER=thenewboston
- POSTGRES_PASSWORD=thenewboston
- SECRET_KEY=somesecret
env_file:
- .env
entrypoint: /opt/project/scripts/docker_entrypoints/entrypoint_cv.sh
volumes:
- ./media/cv2:/opt/project/media
ports:
- 8003:8000
links:
- pv
- db
- redis
depends_on:
- pv
- db
- redis
celery_bank:
build:
dockerfile: Dockerfile_dev
context: .
environment:
- DJANGO_APPLICATION_ENVIRONMENT=local
- NETWORK_SIGNING_KEY=d2621d30bc323ea35fe1c4fb11b4babb7fd4c1c0593805f011caedf7b7ce0031
- REDIS_DB=3
- REDIS_HOST=redis
- POSTGRES_HOST=db
- POSTGRES_DB=thenewboston_bank
- POSTGRES_USER=thenewboston
- POSTGRES_PASSWORD=thenewboston
- SECRET_KEY=somesecret
command: celery -A config.settings worker -l debug
volumes:
- .:/opt/project
links:
- bank
- db
- redis
depends_on:
- db
- redis
celery_pv:
image: docker.pkg.github.com/thenewboston-developers/validator/validator:latest
environment:
- DJANGO_APPLICATION_ENVIRONMENT=local
- NETWORK_SIGNING_KEY=731f928711f30257d20bde471200c11975009415b4c6f596e7ee81bfed1a033b
- REDIS_DB=0
- REDIS_HOST=redis
- POSTGRES_HOST=db
- POSTGRES_DB=thenewboston_pv
- POSTGRES_USER=thenewboston
- POSTGRES_PASSWORD=thenewboston
- SECRET_KEY=somesecret
command: celery -A config.settings worker -l debug -Q celery,block_queue,confirmation_block_queue
links:
- pv
- db
- redis
depends_on:
- db
- redis
celery_cv1:
image: docker.pkg.github.com/thenewboston-developers/validator/validator:latest
environment:
- DJANGO_APPLICATION_ENVIRONMENT=local
- NETWORK_SIGNING_KEY=46a23fd52b2690f5acf56654489fd67b3734a52f35a2b7827f5caeaa06c0c0a5
- REDIS_DB=1
- REDIS_HOST=redis
- POSTGRES_HOST=db
- POSTGRES_DB=thenewboston_cv1
- POSTGRES_USER=thenewboston
- POSTGRES_PASSWORD=thenewboston
- SECRET_KEY=somesecret
command: celery -A config.settings worker -l debug -Q celery,block_queue,confirmation_block_queue
links:
- cv1
- db
- redis
depends_on:
- db
- redis
celery_cv2:
image: docker.pkg.github.com/thenewboston-developers/validator/validator:latest
environment:
- DJANGO_APPLICATION_ENVIRONMENT=local
- NETWORK_SIGNING_KEY=1c7822c93d914ac40fc11d7bd71959d5aadb1ecd07fbffc7d9c481ccd043d4a9
- REDIS_DB=2
- REDIS_HOST=redis
- POSTGRES_HOST=db
- POSTGRES_DB=thenewboston_cv2
- POSTGRES_USER=thenewboston
- POSTGRES_PASSWORD=thenewboston
- SECRET_KEY=somesecret
command: celery -A config.settings worker -l debug -Q celery,block_queue,confirmation_block_queue
links:
- cv2
- db
- redis
depends_on:
- db
- redis
volumes:
postgresql-data:
driver: local
redis-data:
driver: local