Skip to content

Commit 3e71d95

Browse files
committed
Add DDNS_EXPIRATION_DAYS env variable
1 parent 3e9c5ef commit 3e71d95

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

docker/ddns/Dockerfile

+6-1
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,10 @@ RUN GO111MODULE=on go get -d -v ./...
99
RUN GO111MODULE=on go install -v ./...
1010

1111
ENV GIN_MODE release
12+
ENV DDNS_EXPIRATION_DAYS 10
1213

13-
CMD /go/bin/ddns --domain=${DDNS_DOMAIN} --soa_fqdn=${DDNS_SOA_DOMAIN} --redis=${DDNS_REDIS_HOST}
14+
CMD /go/bin/ddns \
15+
--domain=${DDNS_DOMAIN} \
16+
--soa_fqdn=${DDNS_SOA_DOMAIN} \
17+
--redis=${DDNS_REDIS_HOST} \
18+
--expiration-days=${DDNS_EXPIRATION_DAYS}

docker/docker-compose.override.yml.sample

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ services:
55
environment:
66
DDNS_DOMAIN: d.example.net # <<< ADJUST DOMAIN
77
DDNS_SOA_DOMAIN: ddns.example.net # <<< ADJUST DOMAIN
8+
DDNS_EXPIRATION_DAYS: 10
89

910
powerdns:
1011
ports:

0 commit comments

Comments
 (0)