2018-01-27 22:56:03 +01:00
|
|
|
version: '2'
|
|
|
|
|
|
|
|
services:
|
|
|
|
ddns:
|
|
|
|
environment:
|
2018-01-28 15:31:31 +01:00
|
|
|
DDNS_DOMAIN: d.example.net # <<< ADJUST DOMAIN
|
|
|
|
DDNS_SOA_DOMAIN: ddns.example.net # <<< ADJUST DOMAIN
|
2020-10-02 12:06:27 +02:00
|
|
|
DDNS_EXPIRATION_DAYS: 10
|
2018-01-27 22:56:03 +01:00
|
|
|
|
|
|
|
powerdns:
|
|
|
|
ports:
|
2018-02-27 18:28:11 +01:00
|
|
|
- "53:53/udp"
|
2018-01-27 22:56:03 +01:00
|
|
|
|
|
|
|
redis:
|
|
|
|
volumes:
|
2019-08-29 08:46:04 +02:00
|
|
|
- "${PWD}/.redis_mount:/data"
|
2018-01-27 22:56:03 +01:00
|
|
|
|
|
|
|
caddy:
|
|
|
|
restart: unless-stopped
|
|
|
|
image: abiosoft/caddy:latest
|
|
|
|
depends_on:
|
|
|
|
- ddns
|
|
|
|
environment:
|
2019-08-29 08:46:04 +02:00
|
|
|
ACME_AGREE: "true"
|
2018-01-27 22:56:03 +01:00
|
|
|
DDNS_FRONTEND_HOST: ddns:8080
|
2018-01-28 15:31:31 +01:00
|
|
|
DDNS_CADDY_DOMAIN: ddns.example.net # <<< ADJUST DOMAIN
|
|
|
|
DDNS_CADDY_TLS_EMAIL: changeme@example.net # <<< INSERT EMAIL
|
2018-01-27 22:56:03 +01:00
|
|
|
volumes:
|
|
|
|
- "${PWD}/caddy/Caddyfile:/etc/Caddyfile"
|
2019-08-29 08:46:04 +02:00
|
|
|
- "${PWD}/.caddy_mount:/root/.caddy"
|
2018-01-27 22:56:03 +01:00
|
|
|
ports:
|
|
|
|
- "80:80"
|
|
|
|
- "443:443"
|