Persist state using docker volumes
jowi24 opened this issue · 4 comments
jowi24 commented
Can I persist current state (dyndns hostnames and ip data) using docker volumes? Currently, I'm loosing this information when I restart the container.
jowi24 commented
Solved it by adding
volumes: - data:/var/cache/bind
to the compose file.
dstapp commented
Yep this is the way to go, also shown here: https://github.com/dprandzioch/docker-ddns/blob/master/docker-compose.yml
But I think it should be documented in the README file, I'll do that.
jowi24 commented
Aah, thank you. Haven't seen the docker-compose example...
dstapp commented
Added more documentation on develop.