version: "3.3" services: nginx: image: nginx:stable-alpine volumes: - ./nginx-jupyterhub.conf:/etc/nginx/nginx.conf deploy: labels: - "traefik.enable=true" - "traefik.http.routers.jupyterhub.rule=Host(`workshop.trustai.uk`)" - "traefik.http.routers.jupyterhub.entrypoints=web" - "traefik.http.services.jupyterhub.loadbalancer.server.port=80" # TLS - "traefik.http.routers.jupyterhubs.rule=Host(`workshop.trustai.uk`)" - "traefik.http.routers.jupyterhubs.entrypoints=websecure" - "traefik.http.routers.jupyterhubs.tls.certresolver=myhttpchallenge" # Redirect - "traefik.http.routers.jupyterhub.middlewares=https_redirect" - "traefik.http.middlewares.https_redirect.redirectscheme.scheme=https" networks: - traefik-public networks: traefik-public: external: true