dstapp/docker-ddns

Persist state using docker volumes

jowi24 opened this issue · 4 comments

Can I persist current state (dyndns hostnames and ip data) using docker volumes? Currently, I'm loosing this information when I restart the container.

Solved it by adding

volumes: - data:/var/cache/bind

to the compose file.

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.

Aah, thank you. Haven't seen the docker-compose example...

Added more documentation on develop.