From a6ce294497e69adc1fb8b379c4cbebc10ab956e4 Mon Sep 17 00:00:00 2001 From: Darko Gjorgjijoski Date: Sun, 31 Aug 2025 20:57:45 +0200 Subject: [PATCH] Update sqlite path --- docker/development/README.md | 24 +++++++++++----------- docker/production/entrypoint.d/00-setup.sh | 4 ++-- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/docker/development/README.md b/docker/development/README.md index 35142dce..3febf768 100644 --- a/docker/development/README.md +++ b/docker/development/README.md @@ -109,13 +109,13 @@ This dockerized environment comes with support for all three databases that Invo The setup parameters/credentials for each of the supported databases are as follows. -| | MySQL | PostgreSQL | SQLite | -|---|---|---|---| -| **DB_USER** | invoiceshelf | invoiceshelf | Not applicable | -| **DB_PASS** | invoiceshelf | invoiceshelf | Not applicable | -| **DB_NAME** | invoiceshelf | invoiceshelf | /var/www/html/database/database.sqlite | -| **DB_HOST** | db-mysql | db-pgsql | Not applicable | -| **DB_PORT** | 3036 | 5432 | Not applicable | +| | MySQL | PostgreSQL | SQLite | +|---|---|---|---------------------------------------| +| **DB_USER** | invoiceshelf | invoiceshelf | Not applicable | +| **DB_PASS** | invoiceshelf | invoiceshelf | Not applicable | +| **DB_NAME** | invoiceshelf | invoiceshelf | /var/www/html/storage/database.sqlite | +| **DB_HOST** | db-mysql | db-pgsql | Not applicable | +| **DB_PORT** | 3036 | 5432 | Not applicable | **Note:** The only required field for SQLite is **DB_NAME**. @@ -135,11 +135,11 @@ To log into the MySQL or PostgresSQL, use the database information specified in To log into the SQLite, use the following credentials: -| KEY | VALUE | -|--------------|---------------------------| -| **USERNAME** | admin | -| **PASSWORD** | admin | -| **DATABASE** | /database/database.sqlite | +| KEY | VALUE | +|--------------|--------------------------| +| **USERNAME** | admin | +| **PASSWORD** | admin | +| **DATABASE** | /storage/database.sqlite | ### 4. Mailpit (fake mail) diff --git a/docker/production/entrypoint.d/00-setup.sh b/docker/production/entrypoint.d/00-setup.sh index d7df803e..6b922c35 100644 --- a/docker/production/entrypoint.d/00-setup.sh +++ b/docker/production/entrypoint.d/00-setup.sh @@ -22,8 +22,8 @@ cp .env.example .env if [ "$DB_CONNECTION" = "sqlite" ] || [ -z "$DB_CONNECTION" ]; then echo "**** Configure SQLite3 database ****" if [ ! -n "$DB_DATABASE" ]; then - echo "**** DB_DATABASE not defined. Fall back to default /database/database.sqlite location ****" - DB_DATABASE='/var/www/html/database/database.sqlite' + echo "**** DB_DATABASE not defined. Fall back to default /storage/database.sqlite location ****" + DB_DATABASE='/var/www/html/storage/database.sqlite' fi if [ ! -e "$DB_DATABASE" ]; then