Add DDNS_EXPIRATION_DAYS env variable

This commit is contained in:
Thomas G 2020-10-02 12:06:27 +02:00 committed by Thomas Gläßle
parent 3e9c5ef2c5
commit 3e71d958bc
2 changed files with 7 additions and 1 deletions

View File

@ -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}

View File

@ -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: