--- services: it-tools: image: corentinth/it-tools:${ITTOOLS_VERSION:-latest} container_name: it-tools restart: unless-stopped networks: - traefik labels: - "traefik.enable=true" - "traefik.docker.network=traefik" - "traefik.http.routers.it-tools.entrypoints=http" - "traefik.http.routers.it-tools.rule=Host(`${ITTOOLS_DOMAIN:?error}`)" - "traefik.http.middlewares.it-tools-https-redirect.redirectscheme.scheme" - "traefik.http.routers.it-tools.middlewares=it-tools-https-redirect" - "traefik.http.routers.it-tools-secure.entrypoints=https" - "traefik.http.routers.it-tools-secure.rule=Host(`${ITTOOLS_DOMAIN:?error}`)" - "traefik.http.routers.it-tools-secure.tls=true" - "traefik.http.routers.it-tools-secure.service=it-tools" - "traefik.http.services.it-tools.loadbalancer.server.port=80" networks: traefik: external: true