Technitium working
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
[Network]
|
||||
NetworkDeleteOnStop=true
|
||||
DisableDNS=no
|
||||
Driver=bridge
|
||||
Internal=no
|
||||
IPv6=yes
|
||||
Subnet={{ podman_subnet_prefix_ipv4 }}{{ subnet_suffix_value }}.0/24
|
||||
Subnet={{ podman_subnet_prefix_ipv6 }}{{ subnet_suffix_value }}::/64
|
||||
IPRange={{ podman_subnet_prefix_ipv4 }}{{ subnet_suffix_value }}.128/26
|
||||
IPRange={{ podman_subnet_prefix_ipv6 }}{{ subnet_suffix_value }}::0100/120
|
||||
Gateway={{ podman_subnet_prefix_ipv4 }}{{ subnet_suffix_value }}.254
|
||||
Gateway={{ podman_subnet_prefix_ipv6 }}{{ subnet_suffix_value }}::254
|
||||
@@ -0,0 +1,5 @@
|
||||
[Volume]
|
||||
Device=/quadlet/{{ item }}
|
||||
Group=quadlet
|
||||
Type=bind
|
||||
User=quadlet
|
||||
@@ -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
|
||||
@@ -1,37 +0,0 @@
|
||||
[Unit]
|
||||
Description=Technitium DNS Server
|
||||
|
||||
[Container]
|
||||
ContainerName=technitium
|
||||
Image={{ podman_technitium_registry }}/{{ podman_technitium_repository }}:{{ podman_technitium_version }}
|
||||
|
||||
# Enable auto-update container
|
||||
AutoUpdate=registry
|
||||
|
||||
Volume=/path/to/syncthing/config:/config
|
||||
Volume=/path/to/data1:/data1
|
||||
|
||||
HostName=technitium{{ ha_pair_value }}
|
||||
PublishPort=127.0.0.1:8384:8384/tcp
|
||||
PublishPort=22000:22000/tcp
|
||||
|
||||
Environment=PUID=1000
|
||||
Environment=PGID=1000
|
||||
Environment=TZ=Etc/UTC
|
||||
|
||||
# UID mapping is needed to run linuxserver.io container as rootless podman.
|
||||
# This will map UID=1000 inside the container to intermediate UID=0.
|
||||
# For rootless podman intermediate UID=0 will be mapped to the UID of current user.
|
||||
UIDMap=1000:0:1
|
||||
UIDMap=0:1:1000
|
||||
UIDMap=1001:1001:64536
|
||||
|
||||
[Service]
|
||||
Restart=on-failure
|
||||
|
||||
# Extend Timeout to allow time to pull the image
|
||||
TimeoutStartSec=300
|
||||
|
||||
# The [Install] section allows enabling the generated service.
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
Reference in New Issue
Block a user