linuxserver / docker-bookstack

A Docker container for the BookStack documentation wiki
GNU General Public License v3.0
747 stars 108 forks source link

Fix docker-compose mariadb database path #144

Closed JasperE84 closed 1 year ago

JasperE84 commented 1 year ago

Current docker-compose example will result in data loss on container recreation

Description:

Changed docker-compose to achieve data persistence on container recreation

Benefits of this PR and context:

Prevents accidental data loss

How Has This Been Tested?

Checked for bookstack content persistence after running:

docker-compose stop
docker-compose rm -f
docker-compose pull
docker-compose up -d --build --remove-orphans
docker image prune
thespad commented 1 year ago

Our example compose uses our Mariadb container which uses /config for persistent data, you appear to have confused it for the official mariadb image.

LinuxServer-CI commented 1 year ago

I am a bot, here are the test results for this PR: https://ci-tests.linuxserver.io/lspipepr/bookstack/v22.10.2-pkg-fb4fb912-pr-144/index.html https://ci-tests.linuxserver.io/lspipepr/bookstack/v22.10.2-pkg-fb4fb912-pr-144/shellcheck-result.xml