Fix SQLite database location

This commit is contained in:
Yassine Guedidi 2022-05-03 06:47:58 +02:00
parent d4a331af4a
commit 1efe54859f
3 changed files with 3 additions and 2 deletions

View file

@ -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"]

View file

@ -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}

View file

@ -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