-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
168 lines (150 loc) · 4.02 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
x-env-defaults: &env
NODE_ENV: development
YARN_CACHE_FOLDER: /.yarn-cache
x-node: &node
tty: true
init: true
image: node:14.14-alpine
entrypoint: ["node"]
working_dir: /monorepo
volumes:
- ./monorepo:/monorepo:cached
- ./monorepo/node_modules:/monorepo/node_modules:delegated
- yarn-cache:/.yarn-cache
x-node-full: &node-full
tty: true
init: true
image: node:14.14
working_dir: /monorepo
volumes:
- ~/.gitconfig:/etc/gitconfig
- ~/.ssh/id_rsa:/root/.ssh/id_rsa
- ~/.npmrc:/root/.npmrc
- ./monorepo:/monorepo:cached
- ./monorepo/node_modules:/monorepo/node_modules:delegated
- yarn-cache:/.yarn-cache
environment:
<<: *env
x-ember-defaults: &ember
tty: true
init: true
image: danlynn/ember-cli:3.8.1
entrypoint: ["bash"]
working_dir: /myapp
volumes:
- ./manage:/myapp:cached
- ./manage/node_modules:/myapp/node_modules:delegated
- ember-yarn-cache:/.ember-yarn-cache
x-node-env: &node-env
NEW_RELIC_ENABLED: ${NEW_RELIC_ENABLED-0}
NEW_RELIC_LICENSE_KEY: ${NEW_RELIC_LICENSE_KEY-(unset)}
NODE_ENV: development
TERMINUS_TIMEOUT: 1000
TERMINUS_SHUTDOWN_DELAY: 0
YARN_CACHE_FOLDER: /.yarn-cache
x-ember-env: &ember-env
NODE_ENV: development
YARN_CACHE_FOLDER: /.ember-yarn-cache
x-mongodb-env: &mongodb-env
MONGO_DSN: ${MONGO_DSN-mongodb://mongo:27017/lead-management-indm}
x-tenant-env: &tenant-env
TENANT_KEY: ${TENANT_KEY}
services:
google-ad-manager:
tty: true
image: parameter1/google-ad-manager-graphql-service:v1.1.0
volumes:
- ./service-account.json:/service-account.json
environment:
JSON_KEY_FILE_PATH: /service-account.json
NETWORK_CODE: 137873098
VERSION: v202205
mongo:
tty: true
image: mongo:3.6
restart: always
volumes:
- mongodb:/data/db
ports:
- "${SERVER_DB_PORT-9289}:27017"
redis:
tty: true
restart: always
image: redis:alpine
manage:
<<: *ember
entrypoint: ["node_modules/.bin/ember"]
command: ["serve", "--port", "9285", "--live-reload-port", "9286", "--proxy", "http://server"]
environment:
<<: *ember-env
ports:
- "9285:9285"
- "9286:9286"
- "9287:9287"
depends_on:
- server
exports:
<<: *node
working_dir: /monorepo/services/exports
entrypoint: ["yarn"]
command: ["dev"]
environment:
<<: *node-env
ports:
- "9290:80"
server:
<<: *node
working_dir: /monorepo/services/server
entrypoint: ["yarn"]
command: ["dev"]
environment:
<<: [*node-env, *mongodb-env, *tenant-env]
BRIGHTCOVE_ACCOUNT_ID: ${BRIGHTCOVE_ACCOUNT_ID}
BRIGHTCOVE_APP_ID: ${BRIGHTCOVE_APP_ID}
BRIGHTCOVE_SECRET: ${BRIGHTCOVE_SECRET}
EXPOSED_PORT: 9288
GAM_GRAPHQL_URI: ${GAM_GRAPHQL_URI-http://google-ad-manager}
HOST_NAME: ${HOST_NAME}
REDIS_DSN: ${REDIS_DSN-redis://redis:6379/0}
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID}
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY}
EXPORTS_S3_BUCKET: ${EXPORTS_S3_BUCKET-lead-management-exports}
ALLOW_UNREAL_CLICK_CODES: ${ALLOW_UNREAL_CLICK_CODES-0}
ports:
- "9288:80"
depends_on:
- exports
- redis
- mongo
- google-ad-manager
migrate:
<<: *node
working_dir: /monorepo/packages/migrate
entrypoint: ["node"]
command: ["index.js"]
environment:
<<: *node-env
DESTINATION_MONGO_URI: ${MIGRATE_DESTINATION_MONGO_URI}
SOURCE_MONGO_URI: ${MIGRATE_SOURCE_MONGO_URI}
bash:
<<: *node-full
entrypoint: ["/bin/bash"]
sync:
<<: *node
working_dir: /monorepo/packages/sync
entrypoint: ["/bin/sh"]
environment:
<<: [*node-env, *mongodb-env]
lambda:
<<: *node
working_dir: /monorepo/packages/lambda
entrypoint: ["/bin/sh"]
environment:
<<: [*node-env, *mongodb-env]
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID}
AWS_ACCOUNT_ID: ${AWS_ACCOUNT_ID}
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY}
volumes:
mongodb: {}
yarn-cache: {}
ember-yarn-cache: {}