-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
47 lines (46 loc) · 1.2 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
version: '3'
services:
web:
container_name: mobile-web-do
restart: always
build:
context: .
args:
AUTH_CLIENT_ID: ${AUTH_CLIENT_ID}
AUTH_DOMAIN: ${AUTH_DOMAIN}
AUTH_CALLBACK_URL: ${AUTH_CALLBACK_URL}
AUTH_WHITELISTED_DOMAIN: ${AUTH_WHITELISTED_DOMAIN}
PRESENTATION_HOST_URL: ${PRESENTATION_HOST_URL}
API_HOST_URL: ${API_HOST_URL}
environment:
NODE_ENV: production
PORT: ${SERVER_EXPOSE_PORT}
DB_CONNECTION_STRING: ${DB_CONNECTION_STRING}
links:
- mongo
ports:
- 3000:3000
networks:
- mwdnet
depends_on:
- mongo
mongo:
container_name: mobile-web-do_storage
image: mongo:3.6.2-jessie
environment:
MONGO_INITDB_ROOT_USERNAME: ${DB_ADMIN_USERNAME}
MONGO_INITDB_ROOT_PASSWORD: ${DB_ADMIN_PASS}
APP_DB: mobile-web-do
DB_ADMIN_USERNAME: ${DB_ADMIN_USERNAME}
DB_ADMIN_PASS: ${DB_ADMIN_PASS}
DB_APP_USERNAME: ${DB_APP_USERNAME}
DB_APP_PASS: ${DB_APP_PASS}
volumes:
- ../data:/data/db
- ./scripts/mongo-entrypoint-initdb/:/docker-entrypoint-initdb.d/
networks:
- mwdnet
expose:
- 27017
networks:
mwdnet: