Skip to content

Commit ae07d1a

Browse files
committed
Add installation instructions for Docker image
1 parent 5b21226 commit ae07d1a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ PHP DynDNS also supports IPv6! To update both, the IPv4 and IPv6 address, just m
2020
* A web server running PHP 7.2 or newer
2121
* A DNS server (e.g. bind)
2222

23+
Or use the ready to run Docker image (see section "Installation using Docker")
24+
2325
## Installation
2426

2527
There are two methods for getting the latest release:
@@ -36,6 +38,18 @@ Once downloaded, continue with the following steps:
3638
* Configure your DNS server to allow update requests from the webserver (e.g. `allow-update { localhost; }` in bind)
3739
* [Configure your router](https://gitlab.com/Programie/PHPDynDNS/wikis/Configure-your-router) to automatically request the URL of your DynDNS service after each reconnect (or create a cronjob with curl/wget).
3840

41+
## Installation using Docker
42+
43+
PHPDynDNS is also provided as a Docker image. Just pull it from [Docker Hub](https://hub.docker.com/r/programie/phpdyndns).
44+
45+
Mount your config.json to */app/config.json*
46+
47+
Example command to start the container:
48+
49+
```
50+
docker run -d --name phpdyndns -p 80:80 -v /path/to/config.json:/app/config.json:ro programie/phpdyndns
51+
```
52+
3953
## Important
4054

4155
Make sure the config.json is not readable via HTTP! On Apache this is already done using the *.htaccess* file.

0 commit comments

Comments
 (0)