version: '3' services: com2014: image: com2014-server networks: - traefik-public deploy: labels: - "traefik.enable=true" - "traefik.http.routers.com2014.rule=Host(`com2014.trustai.uk`)" - "traefik.http.routers.com2014.entrypoints=web" - "traefik.http.services.com2014.loadbalancer.server.port=80" # TLS - "traefik.http.routers.com2014s.rule=Host(`com2014.trustai.uk`)" - "traefik.http.routers.com2014s.entrypoints=websecure" - "traefik.http.routers.com2014s.tls.certresolver=myhttpchallenge" # Redirect - "traefik.http.routers.com2014.middlewares=https_redirect" - "traefik.http.middlewares.https_redirect.redirectscheme.scheme=https" placement: constraints: - node.role == worker networks: traefik-public: external: true