update ddns-updater to exclude api key in config / added dozzle logging

This commit is contained in:
Mika Bomm 2024-07-24 19:29:17 +02:00
parent b40fe970b7
commit 04b9edf637
4 changed files with 35 additions and 0 deletions

7
.gitignore vendored
View file

@ -11,3 +11,10 @@
!**/compose.yml
!**/Caddyfile
!**/.env.example
!**/Dockerfile
#DDNS updater
!**/data/config.json

View file

@ -0,0 +1,2 @@
PORKBUN_API_KEY=
PORKBUN_API_SECRET_KEY=

View file

@ -1,9 +1,14 @@
services:
ddns-updater:
container_name: ddns-updater
user: "1001:1001"
ports:
- 55555:8000/tcp
volumes:
- /opt/stacks/ddns-updater/data:/updater/data
image: qmcgaw/ddns-updater
restart: unless-stopped
env_file:
- .env
networks: {}

21
ddns-updater/data/config.json Executable file
View file

@ -0,0 +1,21 @@
{
"settings": [
{
"provider": "porkbun",
"domain": "mixel.cloud",
"host": "ddns",
"api_key": "${PORKBUN_API_KEY}",
"secret_api_key": "${PORKBUN_API_SECRET_KEY}",
"ip_version": "ipv4"
},
{
"provider": "porkbun",
"domain": "mixel.cloud",
"host": "pdf2",
"api_key": "${PORKBUN_API_KEY}",
"secret_api_key": "${PORKBUN_API_SECRET_KEY}",
"ip_version": "ipv4"
}
]
}