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: