You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Golang client for dynamically updating cloudflare DNS records on a specified interval. Useful if you're using Cloudflare to point to a device with a dynamic IP Address
6
8
7
9
## Installation
8
10
9
11
### Go package
12
+
10
13
```bash
11
14
go get -u github.com/nickrobison/go-cddns
12
15
```
13
16
14
17
### Debian repository
18
+
15
19
We also now have a debian (and Ubuntu) repository with builds for both amd64 and arm architectures.
16
20
Since we require systemd, the builds only support debian jessie and newer, and ubuntu xenial (16.04) and later.
17
21
@@ -47,6 +51,31 @@ Run the application, optionally specifying the path to the config file.
47
51
go-cddns -config=/path/to/file
48
52
```
49
53
54
+
## Docker Image
55
+
56
+
go-cddns is also provided as a Docker image.
57
+
The application automatically starts when the container boots, but it lacks a functioning config file.
58
+
You'll need to add the path to the desired config as a volume.
59
+
60
+
```bash
61
+
docker run -v /{path/to/config}/config.json:/etc/config.json nickrobison/go-cddns
62
+
63
+
The container can be controlled by systemd via a custom unit file, such as this:
64
+
65
+
```ini
66
+
[Unit]
67
+
Description=Go-cddns container
68
+
After=docker.service
69
+
70
+
[Service]
71
+
Restart=always
72
+
ExecStart=/usr/bin/docker start -a -v /etc/config.json:/etc/config.json nickrobison/go-cddns
0 commit comments