change default database charset (#466)

utf8 delivers several issues with multiple sites (Invalid datetime format for example)
The recommendation from wallabag is to use utf8mb4 as mentioned here: https://github.com/wallabag/wallabag/issues/5116 and here: https://github.com/wallabag/wallabag/issues/4764

The default setup of wallabag in caprover uses utf8, adding this env variable solves the issue even for existing installs.
This commit is contained in:
Cristian Livadaru 2021-07-20 06:42:28 +02:00 committed by GitHub
parent bbeb2a874d
commit 4c92749046
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -16,6 +16,7 @@ services:
SYMFONY__ENV__DATABASE_PASSWORD: $$cap_mariadb-pass
SYMFONY__ENV__SECRET: $$cap_gen_random_hex(30)
SYMFONY__ENV__DOMAIN_NAME: https://$$cap_appname.$$cap_root_domain
SYMFONY__ENV__DATABASE_CHARSET: utf8mb4
volumes:
- $$cap_appname-images:/var/www/wallabag/web/assets/images
# MariaDB