Add docker-compose.yml
Signed-off-by: karmacoma <karmacoma@karmacoma.dev>
This commit is contained in:
parent
f40778f575
commit
6677a3eb52
1 changed files with 23 additions and 0 deletions
23
docker-compose.yml
Normal file
23
docker-compose.yml
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
services:
|
||||||
|
dns-server:
|
||||||
|
container_name: dns-server
|
||||||
|
hostname: dns-server
|
||||||
|
image: technitium/dns-server:latest
|
||||||
|
# For DHCP deployments, use "host" network mode and remove all the port mappings, including the ports array by commenting them
|
||||||
|
# network_mode: "host"
|
||||||
|
ports:
|
||||||
|
- "53:53/udp" #DNS service
|
||||||
|
- "53:53/tcp" #DNS service
|
||||||
|
environment:
|
||||||
|
- DNS_SERVER_DOMAIN=dns.karmacoma.dev #The primary domain name used by this DNS Server to identify itself.
|
||||||
|
# - DNS_SERVER_FORWARDERS=1.1.1.1, 8.8.8.8 #Comma separated list of forwarder addresses.
|
||||||
|
# - DNS_SERVER_FORWARDER_PROTOCOL=Tcp #Forwarder protocol options: Udp, Tcp, Tls, Https, HttpsJson.
|
||||||
|
# - DNS_SERVER_LOG_USING_LOCAL_TIME=true #Enable this option to use local time instead of UTC for logging.
|
||||||
|
volumes:
|
||||||
|
- config:/etc/dns
|
||||||
|
restart: unless-stopped
|
||||||
|
sysctls:
|
||||||
|
- net.ipv4.ip_local_port_range=1024 65000
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
config:
|
||||||
Loading…
Reference in a new issue