coredns-dyndns/docker-compose.yml

38 lines
1.1 KiB
YAML

version: '3.4'
services:
# coredns server
coredns:
image: coredns/coredns
command: -conf /etc/coredns/Corefile
restart: unless-stopped
# ports:
# - '53:53'
# - '53:53/udp'
# better performance for udp requests:
network_mode: host
volumes:
- './config:/etc/coredns'
# web gateway: authentification and reverse proxy
gateway:
image: nginx
restart: unless-stopped
ports:
- 80:80
volumes:
- './config/dynamic/default.conf:/etc/nginx/conf.d/default.conf:ro'
- './config/dynamic/htpasswd:/etc/nginx/conf.d/htpasswd:ro'
- './config/dynamic/htpasswd_le:/etc/nginx/conf.d/htpasswd_le:ro'
# webhook that triggers ip address update
webhook:
image: almir/webhook:2.8.1
command: -verbose -hooks=/etc/webhook/hooks.json -hotreload
restart: unless-stopped
volumes:
- './config/dynamic/webhook.json:/etc/webhook/hooks.json:ro'
- './scripts/dyn.sh:/app/dyn.sh:ro'
- './scripts/cng.sh:/app/cng.sh:ro'
- './config/zones/example.com/db.example.com.dyn:/zonefile'