Merge pull request #26 from coldfix/expiration-days
Add DDNS_EXPIRATION_DAYS env variable
This commit is contained in:
commit
fdc1312c44
2 changed files with 7 additions and 1 deletions
|
@ -9,5 +9,10 @@ RUN GO111MODULE=on go get -d -v ./...
|
||||||
RUN GO111MODULE=on go install -v ./...
|
RUN GO111MODULE=on go install -v ./...
|
||||||
|
|
||||||
ENV GIN_MODE release
|
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}
|
||||||
|
|
|
@ -5,6 +5,7 @@ services:
|
||||||
environment:
|
environment:
|
||||||
DDNS_DOMAIN: d.example.net # <<< ADJUST DOMAIN
|
DDNS_DOMAIN: d.example.net # <<< ADJUST DOMAIN
|
||||||
DDNS_SOA_DOMAIN: ddns.example.net # <<< ADJUST DOMAIN
|
DDNS_SOA_DOMAIN: ddns.example.net # <<< ADJUST DOMAIN
|
||||||
|
DDNS_EXPIRATION_DAYS: 10
|
||||||
|
|
||||||
powerdns:
|
powerdns:
|
||||||
ports:
|
ports:
|
||||||
|
|
Loading…
Reference in a new issue