refactor(duckdns): improve config and remove gui

This commit is contained in:
Nicolas Meienberger 2024-02-29 08:43:02 +01:00
parent 8ccc53a4c7
commit b7709fc477
3 changed files with 49 additions and 52 deletions

View File

@ -1,46 +1,47 @@
{ {
"name": "Duck DNS", "name": "Duck DNS",
"available": true, "available": true,
"port": 8026, "port": 8026,
"exposable": false, "exposable": false,
"id": "duckdns", "id": "duckdns",
"description": "Duck DNS is a free service which will point a DNS (sub domains of duckdns.org) to an IP of your choice", "description": "Duck DNS is a free service which will point a DNS (sub domains of duckdns.org) to an IP of your choice",
"tipi_version": 1, "tipi_version": 1,
"version": "b14c520a-ls8", "no_gui": true,
"categories": ["network"], "version": "b14c520a-ls8",
"short_desc": "Duck DNS is a free Dynamic DNS service", "categories": ["network"],
"author": "linuxserver.io", "short_desc": "Duck DNS is a free Dynamic DNS service",
"source": "https://github.com/linuxserver/docker-duckdns", "author": "linuxserver.io",
"website": "https://docs.linuxserver.io/images/docker-duckdns/", "source": "https://github.com/linuxserver/docker-duckdns",
"supported_architectures": ["arm64", "amd64"], "website": "https://docs.linuxserver.io/images/docker-duckdns/",
"form_fields": [ "supported_architectures": ["arm64", "amd64"],
{ "form_fields": [
"type": "text", {
"label": "Subdomains (comma separated). E.g. `mydomain1,mydomain2`.", "type": "text",
"max": 1024, "label": "Subdomains (comma separated). E.g. `mydomain1,mydomain2`.",
"min": 3, "max": 1024,
"required": true, "min": 3,
"env_variable": "DUCKDNS_SUBDOMAINS" "required": true,
}, "env_variable": "DUCKDNS_SUBDOMAINS"
{ },
"type": "password", {
"label": "DuckDNS Token", "type": "password",
"max": 128, "label": "DuckDNS Token",
"min": 3, "max": 128,
"required": true, "min": 3,
"env_variable": "DUCKDNS_TOKEN" "required": true,
}, "env_variable": "DUCKDNS_TOKEN"
{ },
"type": "text", {
"label": "Update IP (blank, ipv4, ipv6 or both). Setting this value uses external Cloudflare whoami service. Omitting the field uses DuckDNS for detection and only supports IPv4.", "type": "text",
"required": false, "label": "Update IP (blank, ipv4, ipv6 or both). Setting this value uses external Cloudflare whoami service. Omitting the field uses DuckDNS for detection and only supports IPv4.",
"env_variable": "DUCKDNS_UPDATE_IP" "required": false,
}, "env_variable": "DUCKDNS_UPDATE_IP"
{ },
"type": "boolean", {
"label": "Enable logging", "type": "boolean",
"required": false, "label": "Enable logging",
"env_variable": "DUCKDNS_ENABLE_LOG_FILE" "required": false,
} "env_variable": "DUCKDNS_ENABLE_LOG_FILE"
] }
} ]
}

View File

@ -1,4 +1,4 @@
version: "3.9" version: '3.9'
services: services:
duckdns: duckdns:
container_name: duckdns # Should be exact same name as "id" field in config.json container_name: duckdns # Should be exact same name as "id" field in config.json
@ -12,9 +12,7 @@ services:
- UPDATE_IP=${DUCKDNS_UPDATE_IP} - UPDATE_IP=${DUCKDNS_UPDATE_IP}
- LOG_FILE=${DUCKDNS_ENABLE_LOG_FILE} - LOG_FILE=${DUCKDNS_ENABLE_LOG_FILE}
volumes: volumes:
- ${APP_DATA_DIR}/data:/config - ${APP_DATA_DIR}/data/config:/config
ports:
- ${APP_PORT}:80
restart: unless-stopped restart: unless-stopped
networks: networks:
- tipi_main_network - tipi_main_network

View File

@ -2,8 +2,6 @@
[Duckdns](https://duckdns.org/) is a free service which will point a DNS (sub domains of duckdns.org) to an IP of your choice. The service is completely free, and doesn't require reactivation or forum posts to maintain its existence. [Duckdns](https://duckdns.org/) is a free service which will point a DNS (sub domains of duckdns.org) to an IP of your choice. The service is completely free, and doesn't require reactivation or forum posts to maintain its existence.
[![duckdns](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/duckdns.png)](https://duckdns.org/)
## Application Setup ## Application Setup
- Go to the [duckdns website](https://duckdns.org/), register your subdomain(s) and retrieve your token - Go to the [duckdns website](https://duckdns.org/), register your subdomain(s) and retrieve your token
@ -12,7 +10,7 @@
## Notice regarding automatic detection ## Notice regarding automatic detection
Using the `UPDATE_IP` variable whatever its value (`ipv4`, `ipv6` or `both`) uses external *Cloudflare whoami* service to detect public IP addresses. Using the `UPDATE_IP` variable whatever its value (`ipv4`, `ipv6` or `both`) uses external _Cloudflare whoami_ service to detect public IP addresses.
**Be aware that using this variable will query a third-party service other than DuckDNS.** **Be aware that using this variable will query a third-party service other than DuckDNS.**
Omitting the `UPDATE_IP` variable uses DuckDNS for detection and only supports IPv4. Omitting the `UPDATE_IP` variable uses DuckDNS for detection and only supports IPv4.