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"