Skip to content

Commit

Permalink
Add DDNS_EXPIRATION_DAYS env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
coldfix committed Oct 2, 2020
1 parent 3e9c5ef commit 3e71d95
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docker/ddns/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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}
1 change: 1 addition & 0 deletions docker/docker-compose.override.yml.sample
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 3e71d95

Please sign in to comment.