version: '3' services: helloworld: image: wuhanstudio/master-password:latest networks: - traefik-public deploy: labels: - "traefik.enable=true" - "traefik.http.routers.pass.rule=Host(`pass.trustai.uk`)" - "traefik.http.routers.pass.entrypoints=web" - "traefik.http.services.pass.loadbalancer.server.port=80" # TLS - "traefik.http.routers.passs.rule=Host(`pass.trustai.uk`)" - "traefik.http.routers.passs.entrypoints=websecure" - "traefik.http.routers.passs.tls.certresolver=myhttpchallenge" # Redirect - "traefik.http.routers.helloworld.middlewares=https_redirect" - "traefik.http.middlewares.https_redirect.redirectscheme.scheme=https" networks: traefik-public: external: true