Technitium working
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
[Unit]
|
||||
Description=Technitium DNS Server
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
|
||||
[Container]
|
||||
# Ref: https://manpages.opensuse.org/Tumbleweed/podman/quadlet.5.en.html#Container_units_%5BContainer%5D
|
||||
|
||||
ContainerName=technitium
|
||||
Image={{ podman_technitium_registry }}/{{ podman_technitium_repository }}:{{ podman_technitium_version }}
|
||||
HostName=ns{{ ha_pair_value }}
|
||||
|
||||
AutoUpdate=local
|
||||
|
||||
|
||||
# Do not try to pull the image, use pre-populated local image store only
|
||||
Pull=never
|
||||
|
||||
# Set timezone inside container
|
||||
Timezone=America/New_York
|
||||
|
||||
# Volume mappings
|
||||
|
||||
Volume=technitium.volume:/etc/dns
|
||||
|
||||
# Specify custom podman network to use
|
||||
Network=dual-stack.network
|
||||
|
||||
# Set container addresses
|
||||
IP={{ podman_subnet_prefix_ipv4 }}{{ subnet_suffix_value }}.153
|
||||
IP6={{ podman_subnet_prefix_ipv6 }}{{ subnet_suffix_value }}::0153
|
||||
|
||||
# Port mappings
|
||||
|
||||
# HTTP Web UI IPv4/6
|
||||
PublishPort={{ ipv4_address }}:5380:5380/tcp
|
||||
PublishPort=[{{ ipv6_address }}]:5380:5380/tcp
|
||||
|
||||
# DNS TCP/UDP IPv4/6
|
||||
#PublishPort={{ ipv4_address }}:5353:53/tcp
|
||||
#PublishPort=[{{ ipv6_address }}]:5353:53/udp
|
||||
#PublishPort={{ ipv4_address }}:5353:53/udp
|
||||
#PublishPort=[{{ ipv6_address }}]:5353:53/tcp
|
||||
|
||||
# Environment Variables
|
||||
|
||||
Environment=DNS_SERVER_DOMAIN=ns{{ ha_pair_value }}.{{ podman_local_domain }}
|
||||
|
||||
# UID/GID Mappings
|
||||
|
||||
UIDMap=0:0:1
|
||||
Reference in New Issue
Block a user