An open API service indexing awesome lists of open source software.

https://github.com/allanchain/qcloud-ddns-docker

Tencent Cloud (DNSPod) DDNS in Docker
https://github.com/allanchain/qcloud-ddns-docker

ddns ddns-updater dnspod dnspod-ddns docker tencent-cloud

Last synced: 4 months ago
JSON representation

Tencent Cloud (DNSPod) DDNS in Docker

Awesome Lists containing this project

README

          

# Tencent Cloud (DNSPod) DDNS in Docker

[GitHub link](https://github.com/AllanChain/qcloud-ddns-docker/) | [Docker Hub link](https://hub.docker.com/r/allanchain/qcloud-ddns/)

This docker will check the current IP of the machine. If the IP changes, it will update the DNS records on tencent cloud.

## Run (Docker)

```sh
docker run -it -e DDNS_RECORDS='@:A' -e DOMAIN=example.com -e TENCENTCLOUD_SECRET_ID=AKID123456 \
-e TENCENTCLOUD_SECRET_KEY=secret-key-stuff -e TENCENTCLOUD_REGION=ap-guangzhou \
allanchain/qcloud-ddns
```

## Run (Docker Compose)

`docker-compose.yml`:

```yaml
version: '3'
services:
ddns:
image: allanchain/qcloud-ddns
container_name: qcloud-ddns
restart: 'unless-stopped'
env_file:
- env.env
network_mode: host
```

## Environments

| Name | Example | Description |
|:------------------------- |:------------------ |:---------------------------------------------------------------------------------- |
| `DDNS_RECORDS` | `@:A *:AAAA` | The records to modify.
Should be `name@type` pair, and separated with a space. |
| `DOMAIN` | `example.com` | The domain. |
| `TENCENTCLOUD_SECRET_ID` | `AKID123456` | |
| `TENCENTCLOUD_SECRET_KEY` | `secret-key-stuff` | |
| `TENCENTCLOUD_REGION` | `ap-guangzhou` | |
| `IPV4_API` | | Default `https://api.ipify.org` |
| `IPV6_API` | | Default `https://api64.ipify.org` |