Files
EasyDNS/compose.yaml
T
2026-11-22 14:21:54 +01:00

34 lines
986 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# docker compose up -d (config in ./config, state in a named volume)
services:
easydns:
build:
context: .
dockerfile: deploy/docker/Dockerfile
image: easydns:latest
restart: unless-stopped
ports:
- "53:53/udp"
- "53:53/tcp"
# - "853:853/tcp" # DoT
- "127.0.0.1:9953:9953" # REST API – loopback only
- "127.0.0.1:9090:9090" # metrics – loopback only
environment:
EASYDNS_LISTEN: "0.0.0.0:53"
EASYDNS_API_LISTEN: "0.0.0.0:9953"
EASYDNS_DATA_DIR: /etc/easydns/data
# secrets via env files, never in the image:
# DNS_TSIG_XFR: ...
env_file:
- path: ./deploy/docker/easydns.env
required: false
volumes:
- ./config:/etc/easydns:ro
- ./zones:/etc/easydns/data/zones
- easydns-data:/etc/easydns/data
read_only: true
cap_drop: [ALL]
cap_add: [NET_BIND_SERVICE]
security_opt: ["no-new-privileges:true"]
volumes:
easydns-data: {}