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