mirror of
https://github.com/hanzoai/simple-coredns-manager.git
synced 2026-10-30 19:55:29 +00:00
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]>
30 lines
719 B
YAML
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
|