--- #volumes: # bind9_logs: # driver: local # bind9_cache: # driver: local # primary_var_lib_bind: # driver: local # secondary_var_lib_bind: # driver: local networks: pub_dns_net: external: true services: primary: container_name: ns0 build: dockerfile: Dockerfile.primary image: docker-registry1.in.thelinuxpro.net:5000/tlp/bind9-primary:250225.0.3 restart: always user: root environment: - TZ='America/Indianapolis' - BIND9_USER=bind #volumes: #- bind9_logs:/var/named/log #- primary_var_lib_bind:/var/lib/bind #- ./primary/var/lib/bind:/var/lib/bind:rw #- ./primary/etc/bind/named.conf:/etc/bind/named.conf #- primary/var/lib/bind:/tmp/bind networks: pub_dns_net: ipv4_address: 10.99.153.250 # command: [ "cp", "-rv", "/tmp/bind/*", "/var/lib/bind/" ] deploy: placement: constraints: [node.role == manager] secondary1: container_name: ns1 build: dockerfile: Dockerfile.secondary image: docker-registry1.in.thelinuxpro.net:5000/tlp/bind9-secondary:250225.0.3 restart: always user: root environment: - TZ='America/Indianapolis' - BIND9_USER=bind #volumes: #- bind9_logs:/var/named/log #- secondary_var_lib_bind:/var/lib/bind #- ./secondary/var/lib/bind:/var/lib/bind:rw #- ./secondary/etc/bind/named.conf:/etc/bind/named.conf:ro #- secondary/var/lib/bind:/tmp/bind networks: pub_dns_net: ipv4_address: 10.99.153.241 #command: [ "cp", "-rv", "/tmp/bind/*", "/var/lib/bind/" ] deploy: placement: constraints: [node.role == worker] secondary2: container_name: ns2 build: dockerfile: Dockerfile.secondary image: docker-registry1.in.thelinuxpro.net:5000/tlp/bind9-secondary:250225.0.3 restart: always user: root environment: - TZ='America/Indianapolis' - BIND9_USER=bind #volumes: #- bind9_logs:/var/named/log #- secondary_var_lib_bind:/var/lib/bind #- ./secondary/var/lib/bind:/var/lib/bind:rw #- ./secondary/etc/bind/named.conf:/etc/bind/named.conf:ro #- secondary/var/lib/bind:/tmp/bind networks: pub_dns_net: ipv4_address: 10.99.153.242 #command: [ "cp", "-rv", "/tmp/bind/*", "/var/lib/bind/" ] deploy: placement: constraints: [node.role == worker] pubdnsdist1: build: dockerfile: Dockerfile.dnsdist container_name: pubdnsdist1 image: docker-registry1.in.thelinuxpro.net:5000/tlp/pubdnsdist:250225.0.02 networks: pub_dns_net: ipv4_address: 10.99.153.251 restart: always volumes: - /etc/timezone:/etc/timezone:ro - /etc/localtime:/etc/localtime:ro - /etc/resolv.conf:/etc/resolv.conf:ro pubdnsdist2: build: dockerfile: Dockerfile.dnsdist container_name: pubdnsdist2 image: docker-registry1.in.thelinuxpro.net:5000/tlp/pubdnsdist:250225.0.02 networks: pub_dns_net: ipv4_address: 10.99.153.252 restart: always volumes: - /etc/timezone:/etc/timezone:ro - /etc/localtime:/etc/localtime:ro - /etc/resolv.conf:/etc/resolv.conf:ro