X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=docker-compose.yml;h=4ebae447ead6ce6aa072bb716e02f233a9df7374;hb=refs%2Fheads%2Fmaster;hp=e8ea4271267fb4f02659b78ebf17295ebc9d73b6;hpb=a0c34a49765ecc2559ac51b62966b9785ff3a5a3;p=github%2Fshaarli%2FShaarli.git diff --git a/docker-compose.yml b/docker-compose.yml index e8ea4271..4ebae447 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,12 +2,13 @@ # Shaarli - Docker Compose example configuration # # See: -# - https://shaarli.readthedocs.io/en/master/docker/shaarli-images/ -# - https://shaarli.readthedocs.io/en/master/guides/install-shaarli-with-debian9-and-docker/ +# - https://shaarli.readthedocs.io/en/master/Docker/#docker-compose # # Environment variables: # - SHAARLI_VIRTUAL_HOST Fully Qualified Domain Name for the Shaarli instance # - SHAARLI_LETSENCRYPT_EMAIL Contact email for certificate renewal +# - SHAARLI_DOCKER_TAG Shaarli docker tag to use +# See: https://hub.docker.com/r/shaarli/shaarli/tags version: '3' networks: @@ -20,7 +21,7 @@ volumes: services: shaarli: - image: shaarli/shaarli:master + image: shaarli/shaarli:${SHAARLI_DOCKER_TAG} build: ./ networks: - http-proxy @@ -33,14 +34,14 @@ services: traefik.frontend.rule: "Host:${SHAARLI_VIRTUAL_HOST}" traefik: - image: traefik + image: traefik:1.7-alpine command: - "--defaultentrypoints=http,https" - "--entrypoints=Name:http Address::80 Redirect.EntryPoint:https" - "--entrypoints=Name:https Address::443 TLS" - "--retry" - "--docker" - - "--docker.domain=docker.localhost" + - "--docker.domain=${SHAARLI_VIRTUAL_HOST}" - "--docker.exposedbydefault=true" - "--docker.watch=true" - "--acme"