version: "3.3" services: nginx: image: wuhanstudio/deepapi:latest deploy: replicas: 4 labels: - "traefik.enable=true" - "traefik.http.routers.deep.rule=Host(`deep.trustai.uk`)" - "traefik.http.routers.deep.entrypoints=web" - "traefik.http.services.deep.loadbalancer.server.port=8080" # TLS - "traefik.http.routers.deeps.rule=Host(`deep.trustai.uk`)" - "traefik.http.routers.deeps.entrypoints=websecure" - "traefik.http.routers.deeps.tls.certresolver=myhttpchallenge" # Redirect - "traefik.http.routers.deep.middlewares=https_redirect" - "traefik.http.middlewares.https_redirect.redirectscheme.scheme=https" networks: - traefik-public networks: traefik-public: external: true