Acme Dns Docker Compose
Posted on
DNS entry at Cloudflare
Name | Type | Value | Proxied |
---|---|---|---|
auth.acme-dns | NS | ns.acme-dns.sumarsono.com | no |
ns.acme-dns | A | my public ip address | no |
config/config.cfg
[general]
debug = false
listen = "0.0.0.0:53"
protocol = "both"
domain = "auth.acme-dns.sumarsono.com"
nsname = "ns.acme-dns.sumarsono.com"
nsadmin = "sumarsono.com"
# Note
# In Cloudflare, I have 2 records:
# type name content
# NS auth.acme-dns ns.acme-dns.sumarsono.com
# A ns.acme-dns my public ip
records = [
"auth.acme-dns.sumarsono.com. A my public ip",
"ns.acme-dns.sumarsono.com. A my public ip,
"auth.acme-dns.sumarsono.com. NS ns.acme-dns.sumarsono.com.",
]
[database]
engine = "sqlite3"
connection = "/var/lib/acme-dns/acme-dns.db"
# connection = "postgres://user:password@localhost/acmedns_db"
[api]
ip = "0.0.0.0"
disable_registration = false
port = "80"
tls = "none"
use_header = true
header_name = "X-Forwarded-For"
corsorigins = [
"*"
]
[logconfig]
loglevel = "debug"
logtype = "stdout"
logformat = "json"
docker-compose.yaml
version: '3'
services:
acmedns:
image: sumarsono/acme-dns:arm64
ports:
- "53:53"
- "53:53/udp"
# disabled because
# we run behind reverse proxy
#- "80:80"
#- "443:443"
volumes:
- ./config:/etc/acme-dns:ro
- ./data:/var/lib/acme-dns
networks:
- proxy-network
networks:
proxy-network:
external: true