https://github.com/ptst/digitalocean-dyndns
https://github.com/ptst/digitalocean-dyndns
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ptst/digitalocean-dyndns
- Owner: PTST
- Created: 2020-09-22T07:45:12.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-23T06:26:37.000Z (over 5 years ago)
- Last Synced: 2025-02-10T13:43:41.174Z (over 1 year ago)
- Language: Python
- Homepage: https://hub.docker.com/r/ptst/digitalocean-dyndns
- Size: 34.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 |