wiki-v1
wiki-v1 copied to clipboard
Docker-compose documentation missing repo volume
Actual behavior
Doing docker-compose down -v && docker-compose up -d results in data loss, as the repo is in the anonymous volume.
Expected behavior
No data loss should occur, since critical directories are properly mounted on the host for persistence.
Steps to reproduce the behavior
- Follow the docker-compose instructions at https://docs.requarks.io/wiki/install/docker, including the section specifying volumes. Use https://github.com/Requarks/wiki/blob/master/tools/docker-compose.yml as a template as suggested.
- docker-compose up -d
- Add some content to your wiki
- docker-compose down -v
- Perform system maintenance, restart docker engine, reboot, whatever. Or nothing.
- docker-compose up -d
- Attempt to access wiki, note that all content has disappeared.
Suggested remediation
The instructions should include specific details for exactly which volume statements are needed to make the container persistent, ie repo should be included in addition to db and config.yml. Additionally, the sample docker-compose.yml file should be updated to include repo.
Additional notes
I'm not a wiki.js expert. It's possible that there are additional data locations that should also be mounted which I am not aware of. Please let me know if there's anything I can do to assist in the resolution of this issue. Thanks!