From f4605b2c4247a4128488a34c569d51bab4811ff2 Mon Sep 17 00:00:00 2001 From: Emil Dabrowski Date: Sat, 11 Feb 2023 16:29:32 +0100 Subject: [PATCH] Add DoH & DDNS containers --- etc/systemd/system/ddns-updater-dc.service | 16 ++++++++++++++++ etc/systemd/system/dns-proxy-dc.service | 16 ++++++++++++++++ opt/ddns-updater/docker-compose.yml | 11 +++++++++++ opt/dns-proxy/docker-compose.yml | 13 +++++++++++++ 4 files changed, 56 insertions(+) create mode 100644 etc/systemd/system/ddns-updater-dc.service create mode 100644 etc/systemd/system/dns-proxy-dc.service create mode 100644 opt/ddns-updater/docker-compose.yml create mode 100644 opt/dns-proxy/docker-compose.yml diff --git a/etc/systemd/system/ddns-updater-dc.service b/etc/systemd/system/ddns-updater-dc.service new file mode 100644 index 0000000..fbc5302 --- /dev/null +++ b/etc/systemd/system/ddns-updater-dc.service @@ -0,0 +1,16 @@ +[Unit] +Description=DDNS updater (Compose Service) +Requires=docker.service +After=docker.service + +[Service] +WorkingDirectory=/opt/ddns-updater +ExecStart=/usr/bin/docker-compose --project-name ddns-updater up +ExecStop=/usr/bin/docker-compose --project-name ddns-updater down +TimeoutStartSec=0 +Restart=on-failure +StartLimitIntervalSec=60 +StartLimitBurst=3 + +[Install] +WantedBy=multi-user.target diff --git a/etc/systemd/system/dns-proxy-dc.service b/etc/systemd/system/dns-proxy-dc.service new file mode 100644 index 0000000..5988828 --- /dev/null +++ b/etc/systemd/system/dns-proxy-dc.service @@ -0,0 +1,16 @@ +[Unit] +Description=DNS proxy (Compose Service) +Requires=docker.service +After=docker.service + +[Service] +WorkingDirectory=/opt/dns-proxy +ExecStart=/usr/bin/docker-compose --project-name dns-proxy up +ExecStop=/usr/bin/docker-compose --project-name dns-proxy down +TimeoutStartSec=0 +Restart=on-failure +StartLimitIntervalSec=60 +StartLimitBurst=3 + +[Install] +WantedBy=multi-user.target diff --git a/opt/ddns-updater/docker-compose.yml b/opt/ddns-updater/docker-compose.yml new file mode 100644 index 0000000..c9421da --- /dev/null +++ b/opt/ddns-updater/docker-compose.yml @@ -0,0 +1,11 @@ +--- +version: "3.0" + +services: + updater: + image: qmcgaw/ddns-updater:256 + restart: unless-stopped + environment: + CONFIG: '${CONFIG}' + ports: + - "8000:8000" diff --git a/opt/dns-proxy/docker-compose.yml b/opt/dns-proxy/docker-compose.yml new file mode 100644 index 0000000..0584430 --- /dev/null +++ b/opt/dns-proxy/docker-compose.yml @@ -0,0 +1,13 @@ +--- +version: "3.0" + +services: + proxy: + image: visibilityspots/cloudflared:2023.2.1-alpine-3.17 + restart: unless-stopped + environment: + UPSTREAM1: '${UPSTREAM1}' + UPSTREAM2: '${UPSTREAM2}' + ports: + - "53:5054/tcp" + - "53:5054/udp"