-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
243 lines (231 loc) · 6.22 KB
/
docker-compose.yaml
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
237
238
239
240
241
242
243
version: '3'
services:
# Album Manager
album-manager:
build:
context: mra-album-manager
args:
- CONTAINER_ENGINE_ARG=local
image: ngrefarch/album-manager:local
container_name: album-manager
environment:
- DATABASE_HOST=mysql
- DATABASE_PASSWORD=mra_dev
- DATABASE_USERNAME=root
- NEWRELIC_LICENSE_KEY=<your new relic key>
- NETWORK=fabric
- PORT=3306
- UPLOADER_PHOTO=http://localhost/uploader/image/uploads/photos/
ports:
- "82:443"
links:
- mysql
volumes:
- ./mra-album-manager/app:/usr/src/app
# Auth Proxy
auth-proxy:
build:
context: mra-auth-proxy
args:
- CONTAINER_ENGINE_ARG=local
image: ngrefarch/auth-proxy:local
container_name: auth-proxy
volumes:
- ./mra-auth-proxy/app:/usr/src/app
environment:
- AWS_ACCESS_KEY_ID=<AWS_ACCESS_KEY>
- AWS_REGION=us-west-1
- AWS_SECRET_ACCESS_KEY=<AWS_SECRET_ACCESS_KEY>
- FLASK_DEBUG=True
- NETWORK=fabric
- PAGES_URL=pages
- REDIS_ENABLED=1
- REDIS_HOST=redis
- REDIS_PORT=6379
- REDIS_TTL=300
- GOOGLE_CLIENT_ID=<GOOGLE_CLIENT_ID>
- GOOGLE_CLIENT_SECRET=<GOOGLE_CLIENT_SECRET>
- FACEBOOK_APP_ID=<FACEBOOK_APP_ID>
- FACEBOOK_APP_SECRET=<FACEBOOK_APP_SECRET>
ports:
- "80:80"
- "443:443"
links:
- pages
- user-manager
- redis
# Content DB
content-db:
image: docker.io/rethinkdb:latest
container_name: content-db
ports:
- "28015:28015"
- "28080:8080"
volumes:
- ./rethinkdb:/data
# Content Service
content-service:
build:
context: mra-content-service
args:
- CONTAINER_ENGINE_ARG=local
image: ngrefarch/content-service:local
container_name: content-service
volumes:
- ./mra-content-service/app:/go/src/app
environment:
- NETWORK=fabric
- RETHINKDB_URL=content-db:28015
ports:
- "86:443"
links:
- album-manager
- uploader
- user-manager
# Dynamo DB
dynamo-db:
image: docker.io/deangiberson/aws-dynamodb-local:latest
container_name: dynamo-db
ports:
- "8000:8000"
volumes:
- ./dynamo_db:/var/dynamodb_local
# Fake S3
fake-s3:
image: docker.io/lphoward/fake-s3:latest
container_name: fake-s3
ports:
- "4569:4569"
volumes:
- ./fakes3:/fakes3_root
# MySQL
mysql:
image: docker.io/mysql:latest
container_name: mra-mysql
environment:
- MYSQL_ROOT_PASSWORD=mra_dev
ports:
- "3306:3306"
volumes:
- ./mysql:/var/lib/mysql
# Pages
pages:
build:
context: mra-pages
args:
- CONTAINER_ENGINE_ARG=local
image: ngrefarch/pages:local
environment:
- AWS_ACCESS_KEY_ID=<AWS_ACCESS_KEY>
- AWS_REGION=us-west-1
- AWS_SECRET_ACCESS_KEY=<AWS_SECRET_ACCESS_KEY>
- CONTENTSERVICE_ARTICLE_PATH=/content-service/v1/content
- CONTENTSERVICE_ENDPOINT_URL=http://localhost
- GOOGLE_CLIENT_ID=<GOOGLE_CLIENT_ID>
- NETWORK=fabric
- S3_BUCKET=mra-images
- PHOTOMANAGER_ALBUM_PATH=/album-manager/albums
- PHOTOMANAGER_CATALOG_PATH=/album-manager/albums
- PHOTOMANAGER_ENDPOINT_URL=http://localhost
- PHOTOMANAGER_IMAGES_PATH=/album-manager/images
- PHOTOUPLOADER_ALBUM_PATH=/uploader/album
- PHOTOUPLOADER_ENDPOINT_URL=uploader:84
- PHOTOUPLOADER_IMAGE_PATH=/uploader/image
- REDIS_CACHE_PORT=6379
- REDIS_CACHE_URL=redis
- SYMFONY_ENV=dev
- USERMANAGER_ENDPOINT_URL=http://localhost
- USERMANAGER_LOCAL_PATH=/user-manager/v1/users
- USERMANAGER_USER_PATH=/user-manager/v1/users
ports:
- "81:443"
links:
- album-manager
- uploader
- user-manager
- redis
volumes:
- ./mra-pages/ingenious-pages/app/Resources:/ingenious-pages/app/Resources
- ./mra-pages/ingenious-pages/app/web:/ingenious-pages/app/web
- ./mra-pages/ingenious-pages/app/config:/ingenious-pages/app/config
- ./mra-pages/ingenious-pages/web:/ingenious-pages/web
- ./mra-pages/ingenious-pages/src:/ingenious-pages/src
- ./mra-pages/ingenious-pages/less-css:/ingenious-pages/less-css
- ./mra-pages/ingenious-pages/tests:/ingenious-pages/tests
container_name: pages
# Redis
redis:
image: redis:3.2.0
container_name: mra-redis
ports:
- "6379:6379"
# Resizer
resizer:
build:
context: mra-photoresizer
args:
- CONTAINER_ENGINE_ARG=local
image: ngrefarch/photoresizer:local
container_name: resizer
environment:
- AWS_ACCESS_KEY_ID=<AWS_ACCESS_KEY>
- AWS_REGION=us-west-1
- AWS_SECRET_ACCESS_KEY=<AWS_SECRET_ACCESS_KEY>
- S3_URL=http://fake-s3:4569
- NETWORK=fabric
- REDIS_CACHE_PORT=6379
- REDIS_CACHE_URL=redis
- S3_BUCKET=mra-images
ports:
- "83:443"
links:
- redis
# Uploader
uploader:
build:
context: mra-photouploader
args:
- CONTAINER_ENGINE_ARG=local
image: ngrefarch/photouploader:local
container_name: uploader
volumes:
- ./mra-photouploader/app:/usr/src/app
environment:
- ALBUM_MANAGER_URL=http://localhost/album-manager
- AWS_ACCESS_KEY_ID=<AWS_ACCESS_KEY>
- AWS_REGION=us-west-1
- AWS_SECRET_ACCESS_KEY=<AWS_SECRET_ACCESS_KEY>
- DEV_MODE=true
- NETWORK=fabric
- RESIZER_URL=http://localhost/resizer/v1/image
- S3_BUCKET=mra-images
- S3_URL=http://fake-s3:4569
ports:
- "84:443"
links:
- album-manager
- resizer
# User Manager
user-manager:
build:
context: mra-user-manager
args:
- CONTAINER_ENGINE_ARG=local
image: ngrefarch/user-manager:local
container_name: user-manager
volumes:
- ./mra-user-manager/app:/usr/src/app
ports:
- "85:443"
environment:
- ALBUM_MANAGER_URL=https://album-manager/albums
- AWS_ACCESS_KEY_ID=<AWS_ACCESS_KEY>
- AWS_DEFAULT_REGION=us-west-1
- AWS_SECRET_ACCESS_KEY=<AWS_SECRET_ACCESS_KEY>
- DB_ENDPOINT=http://dynamo-db:8000
# - DEV_MODE=true
- NETWORK=fabric
- VERIFY_CERTS=false
links:
- dynamo-db
- album-manager