Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 5 additions & 22 deletions EXAMPLES/default/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,19 @@ 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:
max-size: 1m
max-file: "20"

volumes:
letsencrypt:
certs:
13 changes: 10 additions & 3 deletions EXAMPLES/default/sample.env
Original file line number Diff line number Diff line change
@@ -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