-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
97 lines (92 loc) · 2.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
version: '2'
services:
backend:
build: backend
network_mode: 'bridge'
ports:
- '8080'
volumes:
- .:/usr/src/app
working_dir: /usr/src/app
links:
- redis
depends_on:
- redis
volumes_from:
- secrets
logging:
options:
max-size: "500k"
environment:
- NODE_ENV=development
- IS_NATIVE=0
- NPM_CONFIG_LOGLEVEL=info
- NPM_CONFIG_PROGRESS=false
- NPM_CONFIG_SPIN=false
- VIRTUAL_HOST=m.test.bi
- VIRTUAL_PORT=8080
- VIRTUAL_PATH=/
command: nodemon --watch backend backend/index.js
extra_hosts:
- "www.dnt.local:10.200.10.1"
- "a.test.bi:10.200.10.1"
backend-native:
build: backend
network_mode: 'bridge'
ports:
- '8080'
volumes:
- .:/usr/src/app
working_dir: /usr/src/app
links:
- redis
depends_on:
- redis
volumes_from:
- secrets
logging:
options:
max-size: "500k"
environment:
- NODE_ENV=development
- IS_NATIVE=1
- NPM_CONFIG_LOGLEVEL=info
- NPM_CONFIG_PROGRESS=false
- NPM_CONFIG_SPIN=false
- VIRTUAL_HOST=n.test.bi
- VIRTUAL_PORT=8080
- VIRTUAL_PATH=/
command: nodemon --watch backend backend/index.js
extra_hosts:
- "www.dnt.local:10.200.10.1"
- "a.test.bi:10.200.10.1"
redis:
image: redis:3
network_mode: 'bridge'
logging:
options:
max-size: "10k"
webpack:
build: frontend
network_mode: 'bridge'
ports:
- '3000'
volumes:
- .:/usr/src/app
working_dir: /usr/src/app/frontend
environment:
- NODE_ENV=development
- NPM_CONFIG_LOGLEVEL=info
- NPM_CONFIG_PROGRESS=false
- NPM_CONFIG_SPIN=false
- VIRTUAL_HOST=a.test.bi
- VIRTUAL_PORT=3000
logging:
options:
max-size: "500k"
command: nodemon --watch frontend/webpack.config.js --exec "npm run webpack:serve"
secrets:
image: turistforeningen/ratatoskr-secrets:v5
network_mode: 'bridge'
volumes:
- /secrets