mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-11 07:32:57 +03:00
[PR #79] feat: add support for Postgres database provider #965
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/pocket-id/pocket-id/pull/79
State: closed
Merged: Yes
With this PR it is now possible to use Postgres instead of Sqlite as the database provider.
The following environment variables were added that allows the admin to configure the database provider:
DB_PROVIDERsqlitesqliteandpostgresare supported.SQLITE_DB_PATHdata/pocket-id.dbDB_PROVIDERtosqlite.POSTGRES_CONNECTION_STRING-DB_PROVIDERtopostgres. A connection string can look like this:postgresql://user:password@host:5432/pocket-id.This PR can be tested with the
stonith404/pocket-id:postgres-developmentDocker image.