-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml.example
65 lines (60 loc) · 1.38 KB
/
docker-compose.yml.example
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
version: '3'
services:
nsnWEB:
image: nameservernet:${TAG:-latest}
build: .
networks:
- public
restart: on-failure
volumes:
- ./volumes/web:/usr/share/nginx/html
environment:
- NSN_SERVICE=web
ports:
- "${MYIP}:80:80"
- "${MYIP}:443:443"
nsnDNS:
image: nameservernet:${TAG:-latest}
networks:
- public
- private
restart: on-failure
volumes:
- sackdns:/etc/bind/SackConfig
- ./volumes/dns:/etc/bind/primary
- ./volumes/dns-secondary:/etc/bind/secondary
environment:
- NSN_SERVICE=dns
ports:
- "${MYIP}:53:53/udp"
- "${MYIP}:53:53"
- "${MYIP}:953:953"
nsnCRON:
image: nameservernet:${TAG:-latest}
networks:
- public
- private
links:
- nsnDNS
restart: on-failure
environment:
- NSN_SERVICE=cron
volumes:
- sackdns:/etc/bind/SackConfig
- ./volumes/web:/usr/share/nginx/html
- ./volumes/sack.conf:/SackConfig/sack.conf
- ./volumes/sack.conf.d:/SackConfig/sack.conf.d
volumes:
sackdns:
networks:
public:
driver: bridge
#enable_ipv6: true
private:
driver: bridge
#enable_ipv6: true
ipam:
driver: default
config:
- subnet: 10.1.2.0/24
- subnet: fdda:0448:7e50:1263::/64