From 9a5f69f889637c150b0a6dd19bdaedf238da6126 Mon Sep 17 00:00:00 2001 From: Vivek Santayana Date: Sat, 20 Aug 2022 11:59:33 +0100 Subject: [PATCH] Added database-related env variables --- .env.example | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.env.example b/.env.example index 64abea6..722737e 100644 --- a/.env.example +++ b/.env.example @@ -3,9 +3,18 @@ FLASK_DEBUG=False TZ=Europe/London # Time Zone -## Flask Configuration +## App Configuration SECRET_KEY= # Long, secure, secret string. DATA=./data/ +DATABASE_TYPE=SQLite # SQLite or MySQL, defaults to SQLite +DATABASE_HOST= # Required if MySQL. Must match name of Docker service, or provide host if database is on an external server. Defaults to localhost. +DATABASE_PORT= # Required if MySQL. Defaults to 3306 + +## MySQL Database Configuration (Required if configured to MySQL Database.) +# Note that if using the Docker service, these configuration values will also be used when creating the database in the mysql container. +MYSQL_DATABASE= # Required if MySQL. +MYSQL_USER= # Required if MySQL +MYSQL_PASSWORD= # Required if MySQL. Create secure password string. Note '@' character cannot be used. ## Flask Mail Configuration MAIL_SERVER=postfix # Must match name of the Docker service