HUB
Sign inSign up
izartu logo

javierbeaumont/izartu

By javierbeaumont

•Updated about 11 hours ago

Self-hosted bookmark manager based on tags, private by default. nginx and PHP-FPM on Alpine.

Image
Content management system
0

1.2K

javierbeaumont/izartu repository overview

⁠izartu

Self-hosted web bookmark manager based on tags. Your bookmarks are private by default; making one public shares it on your instance's feed, tag pages and tag cloud. Plain PHP and MySQL, no framework, no build step.

The izartu feed: the latest bookmarks with their tags, one of them private, and the tag cloud beside them.

This image runs the app with nginx and PHP-FPM on Alpine Linux, for amd64 and arm64. It needs MySQL 8.4 or later: each release's compose.yaml runs one beside it. The same image is on GHCR as ghcr.io/javierbeaumont/izartu.

⁠Features

  • Public feed, filters by tag (/tag/php,docs) and by user, tag cloud and searchable tag index.
  • Bookmarks added, edited and deleted inline.
  • Dark and light themes, and a layout for phones.
  • Runs at a domain root or in a sub-directory.
  • Hardened sessions and CSRF-protected forms.

⁠Quick start

Requires Docker with the Compose plugin.

mkdir izartu && cd izartu
curl -fsSLO https://github.com/javierbeaumont/izartu/releases/latest/download/compose.yaml

Choose your database credentials in a .env file next to it:

cat > .env <<'EOF'
DB_USER=izartu
DB_PASS=choose-a-password
DB_ROOT_PASS=choose-another-password
EOF

Start the stack (each start applies the migrations the database lacks) and create your first user, with the role owner:

docker compose up -d --wait
docker compose exec app php /var/www/izartu/private/cli/adduser.php

Open http://localhost:8080⁠ and log in at /login.

⁠Tags

  • X.Y.Z (for example 0.0.0): one release.
  • X.Y (for example 0.0): the newest patch release of that minor version. It is the tag a release's compose.yaml names, so docker compose pull brings patches and a newer minor version is a deliberate upgrade.
  • latest: the newest release.

Only the newest release receives fixes: its image is rebuilt in place, with the same code, when Alpine fixes one of its packages or the image itself is fixed. Its tags move to the new digest.

⁠Configuration

Settings are environment variables, set in .env:

VariableDefaultDescription
DB_USERrequiredThe app's MySQL account
DB_PASSrequiredIts password
DB_ROOT_PASSrequiredRoot password of the bundled MySQL, which izartu never reads
APP_PORT8080Port the app is published on
MYSQL_VERSION9.7MySQL version; choose it before the first start
TIMEZONEUTCTime zone of displayed dates, e.g. Europe/Madrid
PAGE_SIZE10Bookmarks per feed page
TAGS_PAGE_SIZE100Tags per page of the tag index
CLOUD_SIZE50Tags in the tag cloud
BASEdetectedBase path, behind a proxy serving a sub-path
DEBUG0Debug mode; keep it off on a public instance

compose.yaml already sets DB_HOST, DB_NAME, DB_PORT and DB_SSL_ENABLED for the bundled MySQL.

⁠Upgrading

Back up the database first: migrations only go forward.

docker compose pull
docker compose up -d --wait

A newer minor version has its own compose.yaml: read its release notes, download it over the old one and run the same two commands. Until 1.0, a minor version may change how izartu is installed or configured. Recreating the app container logs everyone out.

⁠Users and backups

Users are managed from the command line: adduser.php, passwd.php and deluser.php in /var/www/izartu/private/cli/ (Managing users⁠). A mysqldump of the database is a full backup (Backups⁠).

⁠Known limitations

No sign-up, no full-text search, no import/export, no API. Login attempts are not rate limited: limit them in your reverse proxy.

⁠Verifying the image

Each publication signs the image's build provenance and each platform's SBOM. With the GitHub CLI⁠:

gh attestation verify oci://docker.io/javierbeaumont/izartu:<tag> --repo javierbeaumont/izartu

SECURITY.md⁠ covers the SBOMs, the image's labels and the release's signed compose.yaml and source archive.

⁠License

GNU AGPL v3 or later⁠

Tag summary

Content type

Image

Digest

sha256:7e35b095e…

Size

15.8 MB

Last updated

about 11 hours ago

docker pull javierbeaumont/izartu