This repository has been archived by the owner on Dec 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 56
/
docker-compose.yml
236 lines (236 loc) · 5.62 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
235
236
version: '3.3'
services:
db:
build: ./cd-db
restart: always
volumes:
- pg-data:/data/postgres
- ./cd-db/dumps:/db
environment:
- POSTGRES_USER
- POSTGRES_PASSWORD
ports:
- '5434:5432'
kue:
image: redis:3-alpine
restart: always
zen:
image: node:carbon
working_dir: /usr/src/app
ports:
- '8000:8000'
env_file:
- ./workspace-zen/cp-zen-platform/web/config/development.env
- ./.env
command: yarn dev
depends_on:
- users
- dojos
- events
- badges
- frontend
- eventbrite
- organisations
- events-service
- users-service
- clubs-service
- maildev
- email
environment:
- CD_USERS
- CD_DOJOS
- CD_EVENTS
- CD_BADGES
- CD_EVENTBRITE
- CD_ORGANISATIONS
- CLUBS_SERVICE
- EVENTS_SERVICE
- EMAIL_SERVICE
- GOOGLE_MAPS_KEY
- NODE_ENV
- MAILDEV_ENABLED
- USERS_SERVICE
- POSTGRES_HOST
volumes:
- ./workspace-zen/cp-zen-platform:/usr/src/app:Z
- ./workspace-zen/cp-zen-frontend:/usr/src/app/node_modules/cp-zen-frontend:ro
- ./workspace-zen/cp-translations:/usr/src/app/node_modules/cp-translations:ro
frontend:
image: node:carbon
command: yarn dev
working_dir: /usr/src/app
environment:
- NODE_ENV
volumes:
- ./workspace-zen/cp-zen-frontend:/usr/src/app:Z
- ./workspace-zen/cp-translations:/usr/src/app/node_modules/cp-translations:ro
dojos:
image: node:carbon
env_file:
- ./workspace-zen/cp-dojos-service/config/development.env
- ./.env
working_dir: /usr/src/app
command: yarn dev
environment:
- NODE_ENV
- CD_USERS
- CD_EVENTS
- CD_BADGES
- CD_ORGANISATIONS
- GOOGLE_MAPS_KEY
- POSTGRES_HOST
- KUE_REQUIRED
- KUE_HOST
- MAILDEV_ENABLED
depends_on:
- db
- kue
volumes:
- ./workspace-zen/cp-dojos-service:/usr/src/app:Z
- ./workspace-zen/cp-translations:/usr/src/app/node_modules/cp-translations:ro
users:
image: node:carbon
env_file:
- ./workspace-zen/cp-users-service/config/development.env
- ./.env
working_dir: /usr/src/app
command: yarn dev
environment:
- NODE_ENV
- CD_DOJOS
- CD_EVENTS
- CD_BADGES
- POSTGRES_HOST
- CDF_ADMINS
- MAILDEV_ENABLED
depends_on:
- db
volumes:
- ./workspace-zen/cp-users-service:/usr/src/app:Z
- ./workspace-zen/cp-translations:/usr/src/app/node_modules/cp-translations:ro
events:
image: node:carbon
env_file:
- ./workspace-zen/cp-events-service/config/development.env
- ./.env
working_dir: /usr/src/app
command: yarn dev
environment:
- CD_USERS
- CD_DOJOS
- CD_BADGES
- NODE_ENV
- POSTGRES_HOST
- KUE_REQUIRED
- KUE_HOST
depends_on:
- db
- kue
volumes:
- ./workspace-zen/cp-events-service:/usr/src/app:Z
badges:
image: node:carbon
working_dir: /usr/src/app
env_file:
- ./workspace-zen/cp-badges-service/config/development.env
- ./.env
command: yarn dev
environment:
- CD_USERS
- CD_DOJOS
- CD_EVENTS
- POSTGRES_HOST
- NODE_ENV
volumes:
- ./workspace-zen/cp-badges-service:/usr/src/app:Z
- ./workspace-zen/cp-translations:/usr/src/app/node_modules/cp-translations:ro
eventbrite:
image: node:carbon
command: yarn dev
env_file:
- ./workspace-zen/cp-eventbrite-service/config/development.env
- ./.env
working_dir: /usr/src/app
environment:
- CD_DOJOS
- CD_EVENTS
- NODE_ENV
- POSTGRES_HOST
volumes:
- ./workspace-zen/cp-eventbrite-service:/usr/src/app:Z
- ./workspace-zen/cp-translations:/usr/src/app/node_modules/cp-translations:ro
organisations:
image: node:carbon
command: yarn dev
working_dir: /usr/src/app
env_file:
- ./workspace-zen/cp-organisations-service/config/development.env
- ./.env
environment:
- CD_USERS
- NODE_ENV
- POSTGRES_HOST
depends_on:
- db
volumes:
- ./workspace-zen/cp-organisations-service:/usr/src/app:Z
- ./workspace-zen/cp-translations:/usr/src/app/node_modules/cp-translations:ro
events-service:
image: node:carbon
command: yarn dev
working_dir: /usr/src/app
depends_on:
- db
environment:
- ICS_EVENT_URL
- POSTGRES_HOST
- EVENT_URL
volumes:
- ./workspace-zen/services/events-service:/usr/src/app:Z
maildev:
image: djfarrelly/maildev
ports:
- '1080:80'
email:
image: node:carbon
command: yarn dev
working_dir: /usr/src/app
environment:
- URL_BASE
- EMAIL_DEFAULT_FROM
- MICROSERVICE_PORT
- TRANSPORT
- SMTP_HOST
- POSTGRES_HOST
- TEMPLATES_DIR
- SMTP_SECURE
- SMTP_PORT
volumes:
- ./workspace-zen/services/cp-email-service:/usr/src/app:Z
- ./workspace-zen/cp-translations:/usr/src/app/node_modules/cp-translations:ro
clubs-service:
image: node:carbon
command: yarn dev
working_dir: /usr/src/app
depends_on:
- db
environment:
- POSTGRES_HOST
volumes:
- ./workspace-zen/services/clubs-service:/usr/src/app:Z
ports:
- 9234:9229
users-service:
image: node:carbon
command: yarn dev
working_dir: /usr/src/app
environment:
- POSTGRES_HOST
depends_on:
- db
volumes:
- ./workspace-zen/services/users-service:/usr/src/app:Z
ports:
- 9233:9229
volumes:
pg-data: