diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..b07240f --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,21 @@ +version: '3.8' + +services: + bind9: + build: . + container_name: bind9-dns + ports: + - "53:53/udp" + - "53:53/tcp" + volumes: + - bind9_data:/etc/bind:ro + - bind9_cache:/var/named/data + restart: unless-stopped + cap_drop: + - ALL + cap_add: + - NET_BIND_SERVICE + +volumes: + bind9_cache: + bind9_data: \ No newline at end of file