From 3e71d958bcda7209e3eade4405ab21f9e3f7fb33 Mon Sep 17 00:00:00 2001 From: Thomas G Date: Fri, 2 Oct 2020 12:06:27 +0200 Subject: [PATCH] Add DDNS_EXPIRATION_DAYS env variable --- docker/ddns/Dockerfile | 7 ++++++- docker/docker-compose.override.yml.sample | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/docker/ddns/Dockerfile b/docker/ddns/Dockerfile index fb0f0e0..1aba4eb 100644 --- a/docker/ddns/Dockerfile +++ b/docker/ddns/Dockerfile @@ -9,5 +9,10 @@ RUN GO111MODULE=on go get -d -v ./... RUN GO111MODULE=on go install -v ./... ENV GIN_MODE release +ENV DDNS_EXPIRATION_DAYS 10 -CMD /go/bin/ddns --domain=${DDNS_DOMAIN} --soa_fqdn=${DDNS_SOA_DOMAIN} --redis=${DDNS_REDIS_HOST} +CMD /go/bin/ddns \ + --domain=${DDNS_DOMAIN} \ + --soa_fqdn=${DDNS_SOA_DOMAIN} \ + --redis=${DDNS_REDIS_HOST} \ + --expiration-days=${DDNS_EXPIRATION_DAYS} diff --git a/docker/docker-compose.override.yml.sample b/docker/docker-compose.override.yml.sample index 69a6519..2c8e2f9 100644 --- a/docker/docker-compose.override.yml.sample +++ b/docker/docker-compose.override.yml.sample @@ -5,6 +5,7 @@ services: environment: DDNS_DOMAIN: d.example.net # <<< ADJUST DOMAIN DDNS_SOA_DOMAIN: ddns.example.net # <<< ADJUST DOMAIN + DDNS_EXPIRATION_DAYS: 10 powerdns: ports: