mirror of
https://github.com/EV21/dynb.git
synced 2025-12-26 16:39:32 +01:00
📝 document example of an docker-compose.yml file
This commit is contained in:
@@ -1,10 +1,12 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
|
||||||
## (unreleased)
|
## 0.1.0 (2021-04-22)
|
||||||
|
|
||||||
### New
|
### New
|
||||||
|
|
||||||
|
* :sparkles: add Dockerfile. [Eduard Veit]
|
||||||
|
|
||||||
* :sparkles: add loop mode. [Eduard Veit]
|
* :sparkles: add loop mode. [Eduard Veit]
|
||||||
|
|
||||||
* :sparkles: add support for Duck DNS as DynDNS2 provider. [Eduard Veit]
|
* :sparkles: add support for Duck DNS as DynDNS2 provider. [Eduard Veit]
|
||||||
@@ -35,6 +37,8 @@
|
|||||||
|
|
||||||
### Documentation
|
### Documentation
|
||||||
|
|
||||||
|
* :memo: document example of an docker-compose.yml file. [Eduard Veit]
|
||||||
|
|
||||||
* :memo: document loop mode and dig as requirement. [Eduard Veit]
|
* :memo: document loop mode and dig as requirement. [Eduard Veit]
|
||||||
|
|
||||||
* :memo: update example of .env in README.md. [Eduard Veit]
|
* :memo: update example of .env in README.md. [Eduard Veit]
|
||||||
|
|||||||
25
README.md
25
README.md
@@ -11,6 +11,7 @@ IPv4 (A) and IPv6 (AAAA) record updates are supported.
|
|||||||
- [⚙ Configuration](#-configuration)
|
- [⚙ Configuration](#-configuration)
|
||||||
- [🏃 Run](#-run)
|
- [🏃 Run](#-run)
|
||||||
- [⏰ Cron](#-cron)
|
- [⏰ Cron](#-cron)
|
||||||
|
- [⏰ docker](#-docker)
|
||||||
<!-- /TOC -->
|
<!-- /TOC -->
|
||||||
|
|
||||||
## ✨ Update Methods
|
## ✨ Update Methods
|
||||||
@@ -115,3 +116,27 @@ then enter :point_down: to run dynb every five minutes.
|
|||||||
*/5 * * * * $HOME/.local/bin/dynb >> $HOME/.local/share/dynb/dynb-cron.log
|
*/5 * * * * $HOME/.local/bin/dynb >> $HOME/.local/share/dynb/dynb-cron.log
|
||||||
```
|
```
|
||||||
Note, cron typically does not use the users PATH variable.
|
Note, cron typically does not use the users PATH variable.
|
||||||
|
|
||||||
|
## 🐟 docker
|
||||||
|
|
||||||
|
This is an example of a `docker-compose.yml` file. If you are using IPv6 make sure the routing works properly with your docker container.
|
||||||
|
```yaml
|
||||||
|
version: '3.4'
|
||||||
|
|
||||||
|
services:
|
||||||
|
dynb:
|
||||||
|
image: ev21/dynb
|
||||||
|
container_name: dynb
|
||||||
|
network_mode: host
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: ./Dockerfile
|
||||||
|
environment:
|
||||||
|
- DYNB_DYN_DOMAIN=dyndns.example.com
|
||||||
|
- DYNB_SERVICE_PROVIDER=inwx
|
||||||
|
- DYNB_UPDATE_METHOD=dyndns
|
||||||
|
- DYNB_IP_MODE=64
|
||||||
|
- DYNB_USERNAME=User42
|
||||||
|
- DYNB_PASSWORD=SuperSecretPassword
|
||||||
|
- DYNB_INTERVAL=60
|
||||||
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user