generated from PilotCityInc/PilotCity-ADK-Boiler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
47 lines (47 loc) · 1.14 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.8'
networks:
pdk:
driver: bridge
services:
setup: #in container-based development
build: . #enable this when modifyingh dependencies
container_name: setup
environment:
- NODE_ENV=development
- CHOKIDAR_USEPOLLING=true
- MEMORY_LIMIT=2048
- MAX_THREADS=4
- npm_config_unsafe_perm=true
volumes:
- ./:/usr/src/app
- usr/src/app/node_modules
ports:
- 8017:8080
stdin_open: true
tty: true
command: ["yarn","run","serve"]
networks:
- pdk
mongo: # creates mongodb srever
image: juxsta/boilerdb
container_name: mongo
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: password
networks:
- pdk
volumes:
- ./db:/data/db
mongo-express: # mongodb web client
image: mongo-express
container_name: mongo-express
ports:
- 8081:8081
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: root
ME_CONFIG_MONGODB_ADMINPASSWORD: password
ME_CONFIG_MONGODB_SERVER: mongo
networks:
- pdk
depends_on:
- mongo