services: glances: image: nicolargo/glances:latest container_name: glances hostname: vpn pid: host environment: - GLANCES_OPT=-w volumes: - /var/run/docker.sock:/var/run/docker.sock:ro networks: - proxy labels: ## Expose Glances Through Trefik ## - "traefik.enable=true" # <== Enable traefik to proxy this container - "traefik.http.middlewares.redirect-web-secure.redirectscheme.scheme=https" - "traefik.http.routers.glances-insecure.middlewares=redirect-web-secure" - "traefik.http.routers.glances-insecure.rule=Host(`glances.vpn.luke-else.co.uk`)" - "traefik.http.routers.glances-insecure.entrypoints=web" - "traefik.http.services.glances.loadbalancer.server.port=61208" - "traefik.http.routers.glances.rule=Host(`glances.vpn.luke-else.co.uk`)" - "traefik.http.routers.glances.entrypoints=websecure" - "traefik.http.routers.glances.tls.certresolver=myresolver" restart: unless-stopped networks: proxy: external: true