mirror of
https://github.com/fernwerker/ownDynDNS.git
synced 2025-07-10 22:25:13 +02:00
41 lines
No EOL
1.4 KiB
YAML
41 lines
No EOL
1.4 KiB
YAML
services:
|
|
owndyndns:
|
|
container_name: dyndns
|
|
image: niiwiicamo/owndyndns
|
|
environment:
|
|
DDNS_USER: ${DDNS_USER}
|
|
DDNS_PASS: ${DDNS_PASS}
|
|
NETCUP_APIKEY: ${NETCUP_APIKEY}
|
|
NETCUP_APIPASS: ${NETCUP_APIPASS}
|
|
NETCUP_CUSTOMERID: ${NETCUP_CUSTOMERID}
|
|
DDNS_DEBUG: 0 # optional, default: 0
|
|
DDNS_LOG: 0 # optional, default: 1
|
|
# DDNS_LOGFILE: log.json # optional, default: log.json
|
|
DDNS_RETURNIP: 0 # optional, default: 1
|
|
DDNS_ALLOWCREATE: 1 # optional, default: 0
|
|
# DDNS_RESTRICTDOMAIN: 0 # optional, default: 0
|
|
# DDNS_FORCEDDOMAIN: example.net # optional, default empty
|
|
# DDNS_FORCEDHOST: hostname # optional, default empty
|
|
# ports:
|
|
# - 8080:8080
|
|
|
|
certbot:
|
|
container_name: certbot
|
|
image: certbot/certbot
|
|
depends_on:
|
|
owndyndns:
|
|
condition: service_healthy
|
|
environment:
|
|
DDNS_USER: ${DDNS_USER}
|
|
DDNS_PASS: ${DDNS_PASS}
|
|
DDNS_HOST: ${DDNS_HOST}
|
|
DDNS_DOMAIN: ${DDNS_DOMAIN}
|
|
DDNS_SCRIPT: http://dyndns:8080/update.php
|
|
DDNS_EMAIL: ${DDNS_EMAIL} # the email used for LetsEncrypt registration
|
|
volumes:
|
|
- ./auth-hook.sh:/auth-hook.sh
|
|
- letsencrypt:/etc/letsencrypt
|
|
command: "certonly --manual --preferred-challenges=dns --agree-tos --email ${DDNS_EMAIL} --non-interactive --manual-auth-hook /auth-hook.sh -d ${DDNS_HOST}.${DDNS_DOMAIN}"
|
|
|
|
volumes:
|
|
letsencrypt: |