Files
modanubandHanzo Dev 1c486d5dd7 v2.0.0: migrate from hosts files to BIND zone file management
Replace simple IP-hostname hosts file management with full RFC 1035 BIND
zone file support. Zone files (db.<domain>) now support A, AAAA, CNAME,
MX, TXT, and NS record types with SOA auto-increment (YYYYMMDDNN).

This enables OctoDNS compatibility via octodns-bind and aligns with the
CoreDNS file plugin migration from hosts plugin.

Breaking changes:
- Routes: /hosts/* → /zones/*, /entry/* → /record/*
- Config: HOSTS_DIR → ZONE_DIR (HOSTS_DIR still accepted as fallback)
- Files: hosts.<domain> → db.<domain>

Co-authored-by: Hanzo Dev <[email protected]>
2026-02-17 11:13:25 +07:00

30 lines
719 B
YAML

services:
coredns:
image: coredns/coredns:latest
container_name: coredns
restart: unless-stopped
ports:
- "53:53/udp"
- "53:53/tcp"
volumes:
- ./config/coredns:/etc/coredns
command: -conf /etc/coredns/Corefile
coredns-manager:
build: .
container_name: coredns-manager
restart: unless-stopped
ports:
- "8080:8080"
environment:
- COREFILE_PATH=/etc/coredns/Corefile
- ZONE_DIR=/etc/coredns
- MASTER_PASSWORD=changeme
- JWT_SECRET=change-this-secret
- COREDNS_CONTAINER_NAME=coredns
volumes:
- ./config/coredns:/etc/coredns
- /var/run/docker.sock:/var/run/docker.sock:ro
depends_on:
- coredns