From 6a524908b0511fa93693d358f2aa4618c24beba8 Mon Sep 17 00:00:00 2001 From: urania-dev Date: Fri, 9 Aug 2024 21:02:52 +0200 Subject: [PATCH] Improve ReadMe --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index fe74a84..ab8c46d 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,24 @@ services: **Note**: SQLite database is located in /app/prisma/{DATABASE_URL} if you want to mount it +***Update8.1***: In order to make it actually work it ended up requiring better specification of schemas for Prisma Clients, +the combinations are: + +```yml + DATABASE_PROVIDER: sqlite + DATABASE_URL: file:./db.sqlite +``` + +```yml + DATABASE_PROVIDER: mysql + DATABASE_MYSQL_URL: mysql://root:password@mariadb:3306/snappdb +``` + +```yml + DATABASE_PROVIDER: postgres + DATABASE_MYSQL_URL: postgres://postgres:password@postgres:5432/snappdb +``` + ## Default Admin Authentication If ENV variables ADMIN_USERNAME and ADMIN_PASSWORD are not set it defaults to the very secure: