Skip to content

Commit

Permalink
Force PostgreSQL to prevent SQLite (#54)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
rmassch authored Oct 10, 2023
1 parent 0109b27 commit 252ca5e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion servapps/Tandoor/cosmos-compose.json
Original file line number Diff line number Diff line change
Expand Up @@ -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}",
Expand Down Expand Up @@ -85,4 +86,4 @@
"{ServiceName}-postgres": {
}
}
}
}

0 comments on commit 252ca5e

Please sign in to comment.