From 252ca5e93a00f226d1d8c225451361f6a7e531c2 Mon Sep 17 00:00:00 2001 From: rmassch <1083135+rmassch@users.noreply.github.com> Date: Wed, 11 Oct 2023 01:47:04 +0200 Subject: [PATCH] Force PostgreSQL to prevent SQLite (#54) When I deployed Tandoor I noticed it kept on using SQLite and on restart all data was gone since there was no persistence for the recipes container. Setting DB_ENGINE forces it to use PostgreSQL --- servapps/Tandoor/cosmos-compose.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/servapps/Tandoor/cosmos-compose.json b/servapps/Tandoor/cosmos-compose.json index dbe5c720..eb9a928a 100644 --- a/servapps/Tandoor/cosmos-compose.json +++ b/servapps/Tandoor/cosmos-compose.json @@ -10,6 +10,7 @@ "environment": [ "TZ=auto", "ALLOWED_HOSTS={Hostnames.{StaticServiceName}.{StaticServiceName}.host}", + "DB_ENGINE=django.db.backends.postgresql", "POSTGRES_DB=tandoor", "POSTGRES_USER=tandoor", "POSTGRES_PASSWORD={Passwords.0}", @@ -85,4 +86,4 @@ "{ServiceName}-postgres": { } } -} \ No newline at end of file +}