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