MirrorNest
← Todos os guias

Shaarli

Shaarli is a minimalist, database-free, self-hosted bookmarking and link-archiving service, officially shipped as a container image on GitHub Container Registry.

Destino: Any Docker hostProductivitySite oficial ↗Documentação oficial ↗
Este guia foi elaborado a partir da documentação oficial do Shaarli, ligada acima — verifique sempre lá os nomes exatos dos pacotes/versões antes de executar estes comandos num servidor de produção, uma vez que as versões da distribuição e do projeto mudam com o tempo.
  1. 1Create data directories

    mkdir -p /opt/shaarli/data /opt/shaarli/cache
  2. 2Run 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:latest
  3. 3Docker 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.yml
    docker-compose up -d

    Set SHAARLI_VIRTUAL_HOST, SHAARLI_LETSENCRYPT_EMAIL and SHAARLI_DOCKER_TAG in .env before starting this variant.

  4. 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