-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
60 lines (57 loc) · 1.39 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
48
49
50
51
52
53
54
55
56
57
58
59
60
version: '2'
services:
server:
build: server
network_mode: 'bridge'
ports:
- '8080'
volumes:
- .:/usr/src/app
working_dir: /usr/src/app
links:
- redis
depends_on:
- redis
logging:
options:
max-size: "500k"
environment:
- NODE_ENV=development
- NPM_CONFIG_LOGLEVEL=info
- NPM_CONFIG_PROGRESS=false
- NPM_CONFIG_SPIN=false
- VIRTUAL_HOST=developer.dnt.local
- VIRTUAL_PORT=8080
- VIRTUAL_PATH=/
- LIBRATO_PREFIX=sherpa-developer
- LIBRATO_SOURCE=sherpa-developer-dev
command: nodemon --watch server --watch secrets-dev server/index.js
extra_hosts:
- "www.dnt.local:${DOCKER_IP}"
- "api.dnt.local:${DOCKER_IP}"
- "developer-assets.dnt.local:${DOCKER_IP}"
client:
build: client
network_mode: 'bridge'
ports:
- '3000'
volumes:
- .:/usr/src/app
working_dir: /usr/src/app/client
environment:
- NODE_ENV=development
- NPM_CONFIG_LOGLEVEL=info
- NPM_CONFIG_PROGRESS=false
- NPM_CONFIG_SPIN=false
- VIRTUAL_HOST=developer-assets.dnt.local
- VIRTUAL_PORT=3000
logging:
options:
max-size: "500k"
command: nodemon --watch client/webpack.config.js --exec "npm run webpack:serve"
redis:
image: redis:3
network_mode: 'bridge'
logging:
options:
max-size: "10k"