[新软件] duckdns ddns的新服务 - upto 5 (subdomains+token)

date
Feb 28, 2024
slug
newsoftware-duckdns-ddns
status
Published
summary
新软件-
tags
software
type
Post
URL
 
notion image
notion image

Summary

安装过程


cd ~/tmp_qh/data/ && mkdir duckdns-tbhmbp14
cd duckdns-tbhmbp14

cat > docker-compose.yml <EOF
---
 version: "2.1"
 services:
   duckdns:
     image: lscr.io/linuxserver/duckdns:latest
     container_name: duckdns
       #network_mode: host #optional
     environment:
       #- PUID=1000 #optional
       #- PGID=1000 #optional
         #- TZ=Etc/UTC #optional
       - TZ=Asia/Hong_Kong
         #- SUBDOMAINS=subdomain1,subdomain2
       - SUBDOMAINS=lllxxxxp14
       - TOKEN=58eeb7bb---xxx---11136
       - UPDATE_IP=ipv4 #optional
         #- LOG_FILE=false #optional
         #- LOG_FILE=true #optional; need the following mapping of /config
         #volumes:
         #- ./config:/config #optional
     restart: unless-stopped
EOF

docker-compose down; docker-compose up -d; sleep 1s; docker-compose logs -f

截图

notion image
 

bash script

https://www.duckdns.org/update?domains=YourSubDomains&token=YourToken&ip=OptionalIp

© Ying Bun 2021 - 2024