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

https://github.com/ptst/digitalocean-dyndns


https://github.com/ptst/digitalocean-dyndns

Last synced: 8 months ago
JSON representation

Awesome Lists containing this project

README

          

# DigitalOcean-DynDNS
## Description
Will update a specified DNS entry to point to the host's external IP via the DigitalOcean API.

### docker

```
docker create \
--name=digitalocean-dyndns \
-e DO_TOKEN= \
-e BASE_URL= \
-e HOST_NAME= \
-e UPDATE_INTERVAL=300 \
--restart unless-stopped \
ptst/digitalocean-dyndns
```

### docker-compose

Compatible with docker-compose v2 schemas.

```
version: "3"
services:
digitalocean-dyndns:
container_name: digitalocean-dyndns
environment:
- DO_TOKEN=
- BASE_URL=
- HOST_NAME=
- UPDATE_INTERVAL=300
image: ptst/digitalocean-dyndns
restart: unless-stopped
```

## Parameters

Container images are configured using parameters passed at runtime (such as those above). These parameters are separated by a colon and indicate `:` respectively. For example, `-p 8080:80` would expose port `80` from inside the container to be accessible from the host's IP on port `8080` outside the container.

| Parameter | Function |
| :----: | --- |
| `-e DO_TOKEN=` | Your DigitalOcean API key |
| `-e BASE_URL=` | The base of the domain name you want to update |
| `-e HOST_NAME=` | The subdomain you want to update, set to @ for no subdomain |
| `-e UPDATE_INTERVAL=300` | How often should the process check for IP updates |