-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
45 lines (43 loc) · 974 Bytes
/
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
version: '2'
networks:
app-tier:
driver: bridge
services:
nginx:
build: ./nginx/
links:
- keystone
networks:
- app-tier
ports:
- "8080:80"
mongodb:
build: ./db
volumes:
- ./db/mongodb:/var/lib/mongodb
ports:
- "27017:27017"
environment:
- MONGODB_USERNAME=${MONGODB_USERNAME}
- MONGODB_PASSWORD=${MONGODB_PASSWORD}
- MONGODB_DATABASE=${MONGODB_DATABASE}
- MONGODB_ROOT_USERNAME=${MONGODB_ROOT_USERNAME}
- MONGODB_ROOT_PASSWORD=${MONGODB_ROOT_PASSWORD}
networks:
- app-tier
keystone:
build:
context: ./keystone
args:
app_env: ${APP_ENV}
volumes:
- ./keystone/keystone.js:/usr/src/app/keystone.js
- ./keystone/models:/usr/src/app/models
- ./keystone/routes:/usr/src/app/routes
- ./keystone/updates:/usr/src/app/updates
ports:
- "3000:3000"
links:
- mongodb
networks:
- app-tier