-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
60 lines (60 loc) · 1.34 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:
client:
image: node:7.8.0-alpine
network_mode: 'bridge'
ports:
- '3000'
volumes:
- ./client:/usr/src/app
working_dir: /usr/src/app
environment:
- NODE_ENV=development
- NPM_CONFIG_LOGLEVEL=info
- NPM_CONFIG_PROGRESS=false
- NPM_CONFIG_SPIN=false
- VIRTUAL_HOST=asgardr-dev-server.app.dnt.local
- VIRTUAL_PORT=3000
logging:
options:
max-size: '500k'
command: 'npm run client:start'
redis:
image: redis:3
network_mode: 'bridge'
logging:
options:
max-size: "10k"
server:
image: node:7.8.0-alpine
network_mode: 'bridge'
links:
- redis
depends_on:
- redis
ports:
- '8080'
volumes:
- ./server:/usr/src/app
volumes_from:
- secrets:ro
working_dir: /usr/src/app
logging:
options:
max-size: '500k'
environment:
- 'APP_URL=http://asgardr.app.dnt.local'
- NODE_ENV=development
- 'NTB_API_URL=https://dev.nasjonalturbase.no'
- NPM_CONFIG_LOGLEVEL=info
- NPM_CONFIG_PROGRESS=false
- NPM_CONFIG_SPIN=false
- VIRTUAL_HOST=asgardr.app.dnt.local
- VIRTUAL_PORT=8080
- VIRTUAL_PATH=/
command: 'npm run server:start'
secrets:
build: secrets
network_mode: 'bridge'
volumes:
- /secrets