Skip to content

Instantly share code, notes, and snippets.

@cawka
Created June 26, 2019 15:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cawka/cc6a9fe12addec9ffb2536293252d395 to your computer and use it in GitHub Desktop.
Save cawka/cc6a9fe12addec9ffb2536293252d395 to your computer and use it in GitHub Desktop.
BIND in docker
version: '2.1'
services:
bind:
restart: always
image: cawka/bind9:v1
build: .
ports:
- "53:53/udp"
- "53:53/tcp"
networks:
irl:
ipv4_address: 131.179.196.160
ipv6_address: 2607:f010:3f9::10:1
volumes:
- /export/dns-zones:/data
zkt:
restart: "no"
image: cawka/zkt:v1
build: ./zkt
volumes:
- /export/dns-zones:/data
networks:
irl:
enable_ipv6: true
driver: macvlan
driver_opts:
parent: eth0
ipam:
config:
- subnet: 131.179.196.0/24
- subnet: 2607:f010:3f9::/64
gateway: 2607:f010:3f9::1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment