diff --git a/EXAMPLES/default/docker-compose.yml b/EXAMPLES/default/docker-compose.yml index 6fdd347..f4e1f83 100644 --- a/EXAMPLES/default/docker-compose.yml +++ b/EXAMPLES/default/docker-compose.yml @@ -2,31 +2,14 @@ version: "3" services: dns: - image: ragibkl/bancuh-dns + image: ragibkl/bancuh-dns:2 restart: always - privileged: true # For some reason, some distro needs this - ports: - - 1153:53/tcp - - 1153:53/udp - env_file: .env - volumes: - - ../../data:/local-data/ - logging: - driver: json-file - options: - max-size: 1m - max-file: "20" - - dnsdist: - image: ragibkl/dnsdist-acme - restart: always - privileged: true # For some reason, some distro needs this + privileged: true network_mode: host env_file: .env - environment: - BACKEND: 127.0.0.1:1153 volumes: - - letsencrypt:/etc/letsencrypt + - ../../data:/local-data/ + - certs:/var/cache/bancuh-dns/certs logging: driver: json-file options: @@ -34,4 +17,4 @@ services: max-file: "20" volumes: - letsencrypt: + certs: diff --git a/EXAMPLES/default/sample.env b/EXAMPLES/default/sample.env index c09f338..0f9aae9 100644 --- a/EXAMPLES/default/sample.env +++ b/EXAMPLES/default/sample.env @@ -1,5 +1,12 @@ CONFIG_URL=https://raw.githubusercontent.com/ragibkl/adblock-dns-server/master/data/configuration.yaml #FORWARDERS=8.8.8.8,8.8.4.4 -TLS_DOMAIN=dns1.example.com -TLS_EMAIL=user@example.com -TLS_ENABLED=false + +# TLS (uncomment to enable DoT + DoH) +#TLS_ENABLED=true +#TLS_DOMAIN=dns1.example.com +#TLS_EMAIL=user@example.com + +# Rate limiting +#RATE_LIMIT=100 +#RATE_LIMIT_IPV4_PREFIX=32 +#RATE_LIMIT_IPV6_PREFIX=48