我已经使用traefik,letsencrypt和docker-compose建立了一个运行良好的应用程序集群,我想改进一件事:
现在,我的配置大致如下:
myapp:
image: myacct/myapp:cloudconfig
restart: always
command: ["/bin/bash", "/myapp/startapp.sh"]
expose:
- ...
labels:
- "traefik.docker.network=appnet"
- "traefik.enable=true"
- "traefik.frontend.headers.SSLRedirect=true"
- "traefik.frontend.rule=Host:${INSTANCE_NAME}.myapp.tld"
- "traefik.backend.loadbalancer.sticky=true"
- "traefik.backend=myapp-cluser"
- "traefik.protocol=https"
- "traefik.port=8443"
- "traefik.backend.healthcheck.path=/app/rs/healthcheck"
- "traefik.backend.healthcheck.interval=15s"
要使/ app / gui粘滞和/ app / rs不粘滞,我需要更改什么?