Skip to content

Commit 13dae07

Browse files
author
Philipp Böhm
committed
add ACME_AGREE env variable to override sample and remove requirement for changing local path
1 parent 9d1d6cc commit 13dae07

File tree

3 files changed

+5
-13
lines changed

3 files changed

+5
-13
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
/docker/docker-compose.*.yml
33
/ddns
44
dump.rdb
5+
/docker/.caddy_mount/
6+
/docker/.redis_mount/

README.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,6 @@ you have to create the following two DNS records:
5252

5353
### `ddns`-Setup
5454

55-
Setting up `ddns` was kind of a hassle in the legacy version, because there are multiple components that have to
56-
work together:
57-
58-
* `ddns` that runs the frontend and provides an API compatible with the
59-
[Remote Backend](https://doc.powerdns.com/md/authoritative/backend-remote/)
60-
* Redis as storage backend for `ddns`
61-
* PowerDNS as DNS server, which uses the `ddns` backend API on Port `8053`
62-
* A web server that makes the `ddns` frontend accessible to the Internet through HTTPS
63-
6455
The setup is now automated using [docker-compose](https://docs.docker.com/compose/) and only some customization has
6556
to be made in a `docker-compose.override.yml` file
6657
(a [sample](./docker/docker-compose.override.yml.sample) is available here).
@@ -81,8 +72,6 @@ Please adjust the settings in `docker-compose.override.yml` marked with the `#<<
8172
* adjust the domain part in lines marked with `# <<< ADJUST DOMAIN` according to your DNS-Setup
8273
* insert your email address in lines marked with `# <<< INSERT EMAIL` which is required for getting certificates
8374
from Lets Encrypt
84-
* adjust the path component before the `:` in lines marked with `# <<< ADJUST LOCAL PATH` if the shown path
85-
does not meet your requirements
8675

8776
Finally execute the following `docker-compose` command, which creates 4 containers in detached mode which are also
8877
started automatically after reboot. For updating an existing installation use the same command because it automatically

docker/docker-compose.override.yml.sample

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,21 @@ services:
1212

1313
redis:
1414
volumes:
15-
- "/root/ddns-redis:/data" # <<< ADJUST LOCAL PATH
15+
- "${PWD}/.redis_mount:/data"
1616

1717
caddy:
1818
restart: unless-stopped
1919
image: abiosoft/caddy:latest
2020
depends_on:
2121
- ddns
2222
environment:
23+
ACME_AGREE: "true"
2324
DDNS_FRONTEND_HOST: ddns:8080
2425
DDNS_CADDY_DOMAIN: ddns.example.net # <<< ADJUST DOMAIN
2526
DDNS_CADDY_TLS_EMAIL: [email protected] # <<< INSERT EMAIL
2627
volumes:
2728
- "${PWD}/caddy/Caddyfile:/etc/Caddyfile"
28-
- "/root/ddns-caddy:/root/.caddy" # <<< ADJUST LOCAL PATH
29+
- "${PWD}/.caddy_mount:/root/.caddy"
2930
ports:
3031
- "80:80"
3132
- "443:443"

0 commit comments

Comments
 (0)