Add docker-compose.yml
This commit is contained in:
@@ -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:
|
||||
Reference in New Issue
Block a user