main named.conf
This commit is contained in:
parent
70e7353d2a
commit
ab5eb95f1d
|
@ -0,0 +1,52 @@
|
|||
---
|
||||
volumes:
|
||||
bind9_cache:
|
||||
driver: local
|
||||
|
||||
networks:
|
||||
pub_dns:
|
||||
name: pub_dns
|
||||
driver: macvlan
|
||||
driver_opts:
|
||||
parent: eth0.153
|
||||
ipam:
|
||||
config:
|
||||
- subnet: 10.99.153.240/28
|
||||
ip_range: 10.99.153.240/28
|
||||
gateway: 10.99.153.254
|
||||
|
||||
services:
|
||||
primary:
|
||||
container_name: ns1
|
||||
image: ubuntu/bind9:9.18-22.04_beta
|
||||
restart: always
|
||||
environment:
|
||||
- TZ='America/Indianapolis'
|
||||
- BIND9_USER=bind
|
||||
volumes:
|
||||
- ./primary/etc/bind/named.conf:/etc/bind/named.conf:ro
|
||||
- ./primary/var/lib/bind:/var/lib/bind
|
||||
networks:
|
||||
infra_dev_net:
|
||||
ipv4_address: 10.99.153.241
|
||||
deploy:
|
||||
placement:
|
||||
constraints: [node.role == manager]
|
||||
|
||||
services:
|
||||
secondary:
|
||||
container_name: ns2
|
||||
image: ubuntu/bind9:9.18-22.04_beta
|
||||
restart: always
|
||||
environment:
|
||||
- TZ='America/Indianapolis'
|
||||
- BIND9_USER=bind
|
||||
volumes:
|
||||
- ./secondary/etc/bind/named.conf:/etc/bind/named.conf:ro
|
||||
- ./secondary/var/lib/bind:/var/lib/bind
|
||||
networks:
|
||||
infra_dev_net:
|
||||
ipv4_address: 10.99.153.242
|
||||
deploy:
|
||||
placement:
|
||||
constraints: [node.role == worker]
|
Loading…
Reference in New Issue