Shaarli bookmark manager

Docker Jul 16, 2020

Shaarli docker-compose.yml

A working example. You can add or comment out the SMTP environment, I don't think it's essential.

It's a nice simple and lightweight bookmark organiser and it integrates nicely with browser plugins or android so it's good for nabbing those bookmarks on the hop for later. Wallabag is more for articles - it's great but if you just want to tag and organise bookmarks on the hop, this I have found very useful.

Bumblebee


version: '3.1'

networks:
  traefik_network:
    external:
      name: homelabos_traefik
      # This example is on homelabos but adapt accordingly
volumes:
     shaarli-cache:
     shaarli-data:

services:

  shaarli:
    image: shaarli/shaarli:master
    networks:
      - traefik_network
    restart: unless-stopped
    environment:
      url: "https://shaarli.DOMAIN.COM"
      # Mail here but not essential 
      # Example here is for using Mailgun as an SMTP relay.
      mail__transport: SMTP
      mail__from: "'Blog BLAH' <postmaster@mg.DOMAIN.COM>"
      mail__options__host: smtp.eu.mailgun.org
      mail__options__port: 587
      mail__options__secureConnection: "true"
      mail__options__auth__user: postmaster@mg.DOMAIN.COM
      mail__options__auth__pass: YOU_MG_PASSWORD
      # Someone a bit more together might make this a .env file
      # LazySquirrel.
    volumes:
      - shaarli-cache:/var/www/shaarli/cache
      - shaarli-data:/var/www/shaarli/data
    labels:
      - "traefik.enable=true"
      - "traefik.docker.network=homelabos_traefik"
      - "traefik.http.services.shaarli.loadbalancer.server.scheme=http"
      - "traefik.http.services.shaarli.loadbalancer.server.port=80"
      - "traefik.http.routers.shaarli-http.rule=Host(`shaarli.DOMAIN.COM`)"
      - "traefik.http.routers.shaarli-http.entrypoints=http"
      - "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"
      - "traefik.http.routers.shaarli-http.middlewares=redirect-to-https"
      - "traefik.http.routers.shaarli.rule=Host(`shaarli.DOMAIN.COM`)"
      - "traefik.http.routers.shaarli.entrypoints=https"
      - "traefik.http.routers.shaarli.middlewares=customFrameHomelab@file"
      - "traefik.http.routers.shaarli.tls=true"
      - "traefik.http.routers.shaarli.tls.certresolver=http"

I think you should then log in as admin and set an account.

Bumblebee

Great! You've successfully subscribed.
Great! Next, complete checkout for full access.
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.