diff --git a/lsio/duckdns/docker-compose.yaml b/lsio/duckdns/docker-compose.yaml index 25190ed..35e991f 100644 --- a/lsio/duckdns/docker-compose.yaml +++ b/lsio/duckdns/docker-compose.yaml @@ -9,6 +9,7 @@ services: duckdns: image: ghcr.io/linuxserver/duckdns container_name: duckdns + network_mode: host # optional environment: # for UserID - PUID=${PUID:-1024} # optional @@ -20,6 +21,8 @@ services: - SUBDOMAINS=subdomain1,subdomain2 # DuckDNS token - TOKEN=token + # Set to `ipv6` or `ipv4` to update **only** your public IPv4/6 address. Set to `both` to update IPv6 and IPv4 address. This variable makes use of a [third-party service](#notice-regarding-automatic-detection). Omitting this variable uses DuckDNS for detection and only supports IPv4. `both` and `ipv6` modes needs [host networking](#networking-net). + - UPDATE_IP=ipv4 # optional # Set to `true` to log to file (also need to map /config). - LOG_FILE=false # optional volumes: diff --git a/lsio/duckdns/docker-run.sh b/lsio/duckdns/docker-run.sh index 4c58a69..c2e5343 100644 --- a/lsio/duckdns/docker-run.sh +++ b/lsio/duckdns/docker-run.sh @@ -6,11 +6,13 @@ . ./.env docker run -d \ --name=duckdns \ + --net=host `# optional` `# Use host networking for IPv6 detection` \ -e PUID=${PUID:-1024} `# optional` `# for UserID` \ -e PGID=${PGID:-100} `# optional` `# for GroupID` \ -e TZ=${TZ:-Europe/Amsterdam} `# optional` `# specify a timezone to use, see this [list](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List).` \ -e SUBDOMAINS=subdomain1,subdomain2 `# multiple subdomains allowed, comma separated, no spaces, if your domain is user.duckdns.org you put user, not a sub-subdomain` \ -e TOKEN=token `# DuckDNS token` \ + -e UPDATE_IP=ipv4 `# optional` `# Set to `ipv6` or `ipv4` to update **only** your public IPv4/6 address. Set to `both` to update IPv6 and IPv4 address. This variable makes use of a [third-party service](#notice-regarding-automatic-detection). Omitting this variable uses DuckDNS for detection and only supports IPv4. `both` and `ipv6` modes needs [host networking](#networking-net).` \ -e LOG_FILE=false `# optional` `# Set to `true` to log to file (also need to map /config).` \ -v ${BASEDIR:-/volume1/docker}/duckdns/config:/config `# optional` `# Used in conjunction with logging to file.` \ --restart unless-stopped \