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

https://github.com/855579762735/ddclient

a simple container image for ddclient
https://github.com/855579762735/ddclient

ddclient docker gplv3

Last synced: 10 months ago
JSON representation

a simple container image for ddclient

Awesome Lists containing this project

README

          

A simple alpine based dockerfile for creating ddclient, just four files needed.
> This Dockerfile always builds the latest version of ddclient from source.
## Quick Setup
### Dockerfile
Just download the Dockerfile from this repo. You can save it in `/your/desired/Dockerfile/location`.
### ddclient.conf
Change into the directory of your choosing to get started with the setup. Then create and configure your ddclient.conf based on the [ddclient official documentation](https://ddclient.net/). Or download the sample configuration from the [official ddclient git](https://github.com/ddclient/ddclient/blob/main/ddclient.conf.in).
```
cd /your/desired/setup/location && touch ddclient.conf && nano ddclient.conf
```
### ddclient.cache
In order for ddclient to remember it's last update this file must be created;
```
cd /your/desired/setup/location && touch ddclient.cache
```
### docker-compose.yaml
Create a `docker-compose.yaml` file somewhere on your localhost to read the Dockerfile and create an image.
```yaml
ddclient:
container_name: ddclient
build: /your/desired/Dockerfile/location
volumes:
- '/your/desired/setup/location/ddclient.conf:/etc/ddclient/ddclient.conf:rw'
- '/your/desired/setup/location/ddclient.cache:/var/cache/ddclient/ddclient.cache:rw'
```
Build the image and start the container;
```
sudo docker compose buil ddclient && sudo docker compose up -d ddclient
```
You can apply any `user:` in your docker-compose.yaml so long as your `ddclient.conf` and `ddclient.cache` are owned by that user.
```
sudo chown -R desired_user:desired_group /your/desired/setup/location/ddclient*
```