Summary
My freescout database is deleted with every bootup of Freescout
Steps to reproduce
Mysql server is at host.docker.internal
docker-compose up
Every single time, I get:
freescout-app | 2025-02-28.04:33:10 [WARN] ** [freescout] Detected empty Database - Setting up - Please wait..
freescout-app | 2025-02-28.04:33:21 [WARN] ** [freescout] Creating Administrative User
freescout-app | 2025-02-28.04:33:22 [WARN] ** [freescout] Installing Modules into container
freescout-app | 2025-02-28.04:33:22 [WARN] ** [freescout] Running any Database Migrations
What is the expected correct behavior?
To not delete the database with each startup
Relevant logs and/or screenshots
Environment
- Image version / tag:
- Host OS:
Any logs | docker-compose.yml
Possible fixes
This was fixed by editing the following line: https://github.com/tiredofit/docker-freescout/blob/main/install/etc/cont-init.d/30-freescout#L246
To instead be:
/usr/bin/mariadb --skip-ssl -u $DB_USER -p$DB_PASS -h$DB_HOST -P$DB_PORT -e "use "$DB_NAME"; SELECT * FROM users;" > /dev/null 2>&1