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
- Host: GitHub
- URL: https://github.com/855579762735/ddclient
- Owner: 855579762735
- License: gpl-3.0
- Created: 2025-02-13T16:49:47.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-10T20:55:50.000Z (over 1 year ago)
- Last Synced: 2025-06-20T06:38:10.964Z (about 1 year ago)
- Topics: ddclient, docker, gplv3
- Language: Dockerfile
- Homepage:
- Size: 45.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
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*
```