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