Automatically create user and skip setup page (#345)

* Added checks to docker-entrypoint

* Add init scripts feature

* Added backward compatibility

* Added auto user creation

* Updated README.md and env

* Use dbCheck for checking DB connection
This commit is contained in:
Ween Jiann
2021-05-13 09:41:08 +08:00
committed by GitHub
parent 8e9e7c47da
commit 6c68882449
5 changed files with 106 additions and 38 deletions

7
env
View File

@@ -12,6 +12,13 @@ DB_DATABASE=ninja
DB_USERNAME=ninja
DB_PASSWORD=ninja
# Create initial user
# Default to these values if empty
# IN_USER_EMAIL=admin@example.com
# IN_PASSWORD=changeme!
IN_USER_EMAIL=
IN_PASSWORD=
# Mail options
MAIL_MAILER=log
MAIL_HOST=smtp.mailtrap.io