Skip to content
This repository has been archived by the owner on Jan 15, 2023. It is now read-only.

Self-hosted bookmark service (fork with postgresql support)

License

Notifications You must be signed in to change notification settings

RoGryza/linkding-postgres

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This fork is unmaintaineed. Postgres support was added upstream in linkding#388, published with v1.16.0

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):

Variable Default Description
LD_DB_NAME linkding Database name
LD_DB_USER postgres Postgres user
LD_DB_PASSWORD postgres Postgres password
LD_DB_HOST localhost Postgres host
LD_DB_PORT 5432 Postgres 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.

About

Self-hosted bookmark service (fork with postgresql support)

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 79.4%
  • HTML 11.9%
  • Svelte 2.9%
  • JavaScript 2.7%
  • SCSS 2.3%
  • Dockerfile 0.4%
  • Shell 0.4%