Sign inSign up

rogryza/linkding-postgres

By rogryza

Updated about 4 years ago

Unofficial fork of linkding bookmarks manager with postgres support

Image
0

128

rogryza/linkding-postgres repository overview

NOTE: this is a fork of the official linkding with added PostgreSQL support. See the original repo, this repository only documents changes from the original project so reading the documentation there is recommended. Do not file issues there unless you're sure they're not caused by the changes in this fork, if in doubt feel free to open an issue here and I can help look into it.

Note that this fork does not support SQLite in order to ease maintenance.

Docker

There is an example docker-compose.yml file. Copy the .env.sample file to .env and set your parameters, then run:

docker-compose up -d

Afterwards, follow User setup from the official linkding docs.

Configuration

Linkding-postgres is configured via the following environment variables (see sitreoot/settings/base.py):

VariableDefaultDescription
LD_DB_NAMElinkdingDatabase name
LD_DB_USERpostgresPostgres user
LD_DB_PASSWORDpostgresPostgres password
LD_DB_HOSTlocalhostPostgres host
LD_DB_PORT5432Postgres port

Alternatively, you can update DATABASES['default'] in siteroot/settings/custom.py. See siteroot/settings/base.py for an example.

Testing

Tests depend on a postgres instance running. If you have docker You can run run-test-postgres.sh to start it with the correct credentials in the background. Note that the script will fail if port 5432 is not free, e.g. if you have another instance of postgres running on the default port. See DATABASES in siteroot/settings/base.py for the expected default credentials.

Alternatively if you have direnv and PostgreSQL installed locally, you can just run postgres inside the direnv setup by .envrc.

Tag summary

Content type

Image

Digest

sha256:aaa5452ca

Size

78 MB

Last updated

about 4 years ago

docker pull rogryza/linkding-postgres