-
Notifications
You must be signed in to change notification settings - Fork 70
/
Copy pathdocker-compose.yml
76 lines (70 loc) · 1.55 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
version: '3'
volumes:
api_node_modules:
scripts_node_modules:
dns_node_modules:
networks:
dref:
driver: bridge
services:
mongo:
image: mongo:3.6.5-jessie
restart: on-failure
networks:
- dref
dns:
image: node:9.11.2-alpine
ports:
- 0.0.0.0:53:53/udp
volumes:
- ./dref/dns/:/src:rw
- ./dref-config.yml:/tmp/dref-config.yml:ro
- dns_node_modules:/src/node_modules
working_dir: /src/
networks:
- dref
command: sh -c "npm install --production && npm run build && npm run start"
restart: on-failure
depends_on:
- mongo
scripts:
image: node:9.11.2-alpine
networks:
- dref
environment:
- HOST=0.0.0.0
- PORT=8000
volumes:
- ./dref/scripts/:/src:rw
- scripts_node_modules:/src/node_modules
working_dir: /src/
command: sh -c "npm install && npm run dev"
restart: on-failure
depends_on:
- mongo
api:
build:
context: .
dockerfile: iptables-node-alpine.Dockerfile
networks:
- dref
cap_add:
- NET_ADMIN
ports:
- 0.0.0.0:80:80
- 0.0.0.0:443:443
- 0.0.0.0:8000:8000
- 0.0.0.0:8080:8080
- 0.0.0.0:8888:8888
environment:
- PORT=45000
volumes:
- ./dref/api/:/src:rw
- ./dref-config.yml:/tmp/dref-config.yml:ro
- api_node_modules:/src/node_modules
working_dir: /src/
command: sh -c "npm install --production && npm run build && npm run start"
restart: on-failure
depends_on:
- mongo
- scripts