From 1efe54859f4bbd0e7d03d2662e2fed148210c43b Mon Sep 17 00:00:00 2001 From: Yassine Guedidi Date: Tue, 3 May 2022 06:47:58 +0200 Subject: [PATCH] Fix SQLite database location --- docker/php/Dockerfile | 1 + docker/php/config/parameters.yml | 2 +- docker/php/env.example | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docker/php/Dockerfile b/docker/php/Dockerfile index 40377944e..48dcfd8cd 100644 --- a/docker/php/Dockerfile +++ b/docker/php/Dockerfile @@ -74,6 +74,7 @@ RUN mkdir -p \ /var/www/html/var/cache \ /var/www/html/web/assets \ /var/www/html/data \ + /var/www/html/data/db \ /var/www/.cache ENTRYPOINT ["/entrypoint.sh"] diff --git a/docker/php/config/parameters.yml b/docker/php/config/parameters.yml index a647aa589..4ffab2015 100644 --- a/docker/php/config/parameters.yml +++ b/docker/php/config/parameters.yml @@ -6,7 +6,7 @@ parameters: database_name: ${DATABASE_NAME:-symfony} database_user: ${DATABASE_USER:-root} database_password: ${DATABASE_PASSWORD:-~} - database_path: ${DATABASE_PATH:-"%kernel.root_dir%/data/wallabag.sqlite"} + database_path: ${DATABASE_PATH:-"%kernel.root_dir%/data/db/wallabag.sqlite"} database_table_prefix: wallabag_ database_socket: null database_charset: ${DATABASE_CHARSET:-utf8} diff --git a/docker/php/env.example b/docker/php/env.example index 9a21571dd..cf8878114 100644 --- a/docker/php/env.example +++ b/docker/php/env.example @@ -4,7 +4,7 @@ DATABASE_PORT=~ DATABASE_NAME=symfony DATABASE_USER=root DATABASE_PASSWORD=~ -DATABASE_PATH="%kernel.project_dir%/data/wallabag.sqlite" +DATABASE_PATH="%kernel.project_dir%/data/db/wallabag.sqlite" DOMAIN_NAME=http://localhost:8000 SECRET=ch4n63m31fy0uc4n PHP_SESSION_SAVE_PATH=tcp://redis:6379?database=2