forked from BretFisher/node-docker-good-defaults
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
36 lines (32 loc) · 1.05 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
version: '3'
services:
web:
build: ./
ports:
- ${PORT}:${PORT}
- 5858:5858
- 9229:9229
- 9230:9230
env_file: .env
depends_on:
- mongo
volumes:
- .:/app:delegated
# this is a workaround to prevent host node_modules from accidently getting mounted in container
# in case you want to use node/npm both outside container for test/lint etc. and also inside container
# this will overwrite the default node_modules dir in container so it won't conflict with our
# /app/node_modules location.
- notused:/app/node_modules
# you can use legacy debug config or new inspect
# NOTE: if nodemon isn't restarting on changes, you might be on Windows
# which has trouble seeing file changes, so add -L to use legacy polling
# https://github.com/remy/nodemon#application-isnt-restarting
#command: nodemon --debug=0.0.0.0:5858
command: nodemon --inspect=0.0.0.0:9229
# NoSQL datastore (MongoDB)
mongo:
image: mongo:latest
ports:
- 27017:27017
volumes:
notused: