-
-
Notifications
You must be signed in to change notification settings - Fork 37
/
docker-compose.dev.yml
42 lines (41 loc) · 1.66 KB
/
docker-compose.dev.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
version: '3.6'
services:
graphql-engine:
ports:
- "8080:8080"
depends_on:
- postgres
auth:
# 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: ../node_modules/.bin/nodemon --debug=0.0.0.0:5858
command: ../node_modules/.bin/nodemon --inspect=0.0.0.0:9229
ports:
- "3001:3001"
- "9229:9229"
- "9230:9230"
volumes:
- ./server/auth:/opt/app:delegated
# bind-mounting these two files in will let you add packages during development without rebuilding
# for example, to add bower to your app while developing, just install it inside the container
# and then nodemon will restart. Your changes will last until you "docker-compose down" and will
# be saved on host for next build
# docker-compose exec node npm install --save bower
- ./server/auth/package.json:/opt/package.json
- ./server/auth/package-lock.json:/opt/package-lock.json
# 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
# /opt/node_modules location. Thanks to PR from @brnluiz
- notused:/opt/app/node_modules
nginx:
build:
args:
APP_ENV: "dev"
ports:
- "4000:80"
volumes:
db_data:
notused: