3

使用 docker 部署应用程序在单机上怎么实现热更新

 1 year ago
source link: https://www.v2ex.com/t/861030
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

V2EX  ›  Docker

使用 docker 部署应用程序在单机上怎么实现热更新

  dzdh · 15 分钟前 · 92 次点击

不考虑 stack / swarm / k*s 。单机场景。只能自己做蓝绿吗

dzdh      1 分钟前

抛砖引玉看好不好使。

compose 运行两个服务,一个是 tcp 转发服务,另一个是真正的服务,scale=N 不直接对外暴露任何端口。

比如:

forward: 80:80, forward: 80->nginx:80
nginx(scale=N): :80

然后 forward 不用动,更新 nginx 就行?

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK