← Tous les guides
Shaarli
Shaarli is a minimalist, database-free, self-hosted bookmarking and link-archiving service, officially shipped as a container image on GitHub Container Registry.
Ce guide est élaboré à partir de la documentation officielle de Shaarli, dont le lien figure ci-dessus — vérifiez toujours les noms exacts des paquets/versions avant d'exécuter ces commandes sur un serveur de production, car les versions de la distribution et du projet évoluent avec le temps.
1Create data directories
mkdir -p /opt/shaarli/data /opt/shaarli/cache2Run the Shaarli container
docker run --detach --name myshaarli --publish 8000:80 --volume /opt/shaarli/data:/var/www/shaarli/data --volume /opt/shaarli/cache:/var/www/shaarli/cache ghcr.io/shaarli/shaarli:latest3Docker Compose alternative (with reverse proxy)
For a production setup with Traefik and automatic Let's Encrypt certificates, download the official compose file and configure the .env before starting.
curl -L https://raw.githubusercontent.com/shaarli/Shaarli/latest/docker-compose.yml -o docker-compose.ymldocker-compose up -dSet SHAARLI_VIRTUAL_HOST, SHAARLI_LETSENCRYPT_EMAIL and SHAARLI_DOCKER_TAG in .env before starting this variant.
4First login
Open the site in a browser to create the initial account, since Shaarli has no separate registration step.
Default access with the simple run command: http://your-server:8000