2 # Shaarli - Docker Compose example configuration
5 # - https://shaarli.readthedocs.io/en/master/docker/shaarli-images/
6 # - https://shaarli.readthedocs.io/en/master/guides/install-shaarli-with-debian9-and-docker/
8 # Environment variables:
9 # - SHAARLI_VIRTUAL_HOST Fully Qualified Domain Name for the Shaarli instance
10 # - SHAARLI_LETSENCRYPT_EMAIL Contact email for certificate renewal
23 image: shaarli/shaarli:master
28 - shaarli-cache:/var/www/shaarli/cache
29 - shaarli-data:/var/www/shaarli/data
31 traefik.domain: "${SHAARLI_VIRTUAL_HOST}"
32 traefik.backend: shaarli
33 traefik.frontend.rule: "Host:${SHAARLI_VIRTUAL_HOST}"
36 image: traefik:1.7-alpine
38 - "--defaultentrypoints=http,https"
39 - "--entrypoints=Name:http Address::80 Redirect.EntryPoint:https"
40 - "--entrypoints=Name:https Address::443 TLS"
43 - "--docker.domain=docker.localhost"
44 - "--docker.exposedbydefault=true"
45 - "--docker.watch=true"
47 - "--acme.domains=${SHAARLI_VIRTUAL_HOST}"
48 - "--acme.email=${SHAARLI_LETSENCRYPT_EMAIL}"
49 - "--acme.entrypoint=https"
50 - "--acme.onhostrule=true"
51 - "--acme.storage=/acme/acme.json"
52 - "--acme.httpchallenge"
53 - "--acme.httpchallenge.entrypoint=http"
60 - /var/run/docker.sock:/var/run/docker.sock:ro