-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
211 lines (195 loc) · 4.75 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
version: '3.7'
x-env-defaults: &env
APPLICATION_URL: ${APPLICATION_URL-http://0.0.0.0:12002}
APPLICATION_SERVICE_URL: ${APPLICATION_SERVICE_URL-http://application}
EXPORT_SERVICE_URL: ${EXPORT_SERVICE_URL-http://export}
LOCALE_SERVICE_URL: ${LOCALE_SERVICE_URL-http://locale}
MAILER_SERVICE_URL: ${MAILER_SERVICE_URL-http://mailer}
MEMBERSHIP_SERVICE_URL: ${MEMBERSHIP_SERVICE_URL-http://membership}
MONGO_DSN: ${MONGO_DSN-mongodb://mongodb:27017/identity-x}
NEW_RELIC_ENABLED: ${NEW_RELIC_ENABLED-0}
NEW_RELIC_LICENSE_KEY: ${NEW_RELIC_LICENSE_KEY-(unset)}
NODE_ENV: development
ORGANIZATION_SERVICE_URL: ${ORGANIZATION_SERVICE_URL-http://organization}
SENDING_DOMAIN: ${SENDING_DOMAIN-identity-x.base-cms.io}
TOKEN_SERVICE_URL: ${TOKEN_SERVICE_URL-http://token}
SUPPORT_EMAIl: ${SUPPORT_EMAIL-root@localhost}
SUPPORT_ENTITY: ${SUPPORT_ENTITY-My Dev Company}
TERMINUS_TIMEOUT: 1000
TERMINUS_SHUTDOWN_DELAY: 0
USER_SERVICE_URL: ${USER_SERVICE_URL-http://user}
YARN_CACHE_FOLDER: /.yarn-cache
x-node-defaults: &node
tty: true
init: true
image: node:10.15
working_dir: /identity-x
restart: always
volumes:
- .:/identity-x:cached
- ./node_modules:/identity-x/node_modules:delegated
- yarn-cache:/.yarn-cache
environment:
<<: *env
services:
commands:
<<: *node
entrypoint: ["tail"]
command: ["-f", "/dev/null"]
mongodb:
tty: true
image: mongo:3.6
volumes:
- mongodb:/data/db
ports:
- "12000:27017"
graphql:
<<: *node
working_dir: /identity-x/services/graphql
entrypoint: ["node_modules/.bin/gulp"]
environment:
<<: *env
INTERNAL_PORT: 80
EXTERNAL_PORT: 12001
depends_on:
- application
- export
- locale
- membership
- organization
- user
ports:
- "12001:80"
manage:
<<: *node
image: danlynn/ember-cli:3.10.1
working_dir: /identity-x/services/manage
entrypoint: ["node_modules/.bin/ember"]
command: ["serve", "--port", "12002", "--proxy", "http://graphql"]
tmpfs:
- /identity-x/services/manage/tmp
depends_on:
- graphql
ports:
- "12002:12002"
organization:
<<: *node
working_dir: /identity-x/services/organization
command: ["node_modules/.bin/gulp"]
environment:
<<: *env
INTERNAL_PORT: 80
EXTERNAL_PORT: 12003
depends_on:
- mongodb
ports:
- "12003:80"
token:
<<: *node
working_dir: /identity-x/services/token
command: ["node_modules/.bin/gulp"]
environment:
<<: *env
INTERNAL_PORT: 80
EXTERNAL_PORT: 12004
TOKEN_SECRET: ${TOKEN_SECRET-thisisntverysecret}
depends_on:
- mongodb
ports:
- "12004:80"
mailer:
<<: *node
working_dir: /identity-x/services/mailer
command: ["node_modules/.bin/gulp"]
environment:
<<: *env
INTERNAL_PORT: 80
EXTERNAL_PORT: 12005
SENDGRID_API_KEY: ${SENDGRID_API_KEY}
ports:
- "12005:80"
user:
<<: *node
working_dir: /identity-x/services/user
command: ["node_modules/.bin/gulp"]
environment:
<<: *env
INTERNAL_PORT: 80
EXTERNAL_PORT: 12006
depends_on:
- mongodb
- token
- mailer
ports:
- "12006:80"
membership:
<<: *node
working_dir: /identity-x/services/membership
command: ["node_modules/.bin/gulp"]
environment:
<<: *env
INTERNAL_PORT: 80
EXTERNAL_PORT: 12007
depends_on:
- mailer
- mongodb
- organization
- token
- user
ports:
- "12007:80"
application:
<<: *node
working_dir: /identity-x/services/application
command: ["node_modules/.bin/gulp"]
environment:
<<: *env
INTERNAL_PORT: 80
EXTERNAL_PORT: 12008
depends_on:
- ip
- locale
- mongodb
- token
- organization
ports:
- "12008:80"
locale:
<<: *node
working_dir: /identity-x/services/locale
command: ["node_modules/.bin/gulp"]
environment:
<<: *env
INTERNAL_PORT: 80
EXTERNAL_PORT: 12009
ports:
- "12009:80"
ip:
<<: *node
working_dir: /identity-x/services/ip
command: ["node_modules/.bin/gulp"]
environment:
<<: *env
INTERNAL_PORT: 80
EXTERNAL_PORT: 12010
ports:
- "12010:80"
export:
<<: *node
working_dir: /identity-x/services/export
command: ["node_modules/.bin/gulp"]
environment:
<<: *env
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID}
AWS_S3_BUCKET_NAME: ${AWS_S3_BUCKET_NAME}
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY}
INTERNAL_PORT: 80
EXTERNAL_PORT: 12011
depends_on:
- application
- mailer
ports:
- "12011:80"
volumes:
mongodb: {}
yarn-cache: {}