[FEATURE]固定 docker 容器 ip #6344
Fantasy135
started this conversation in
Ideas
Replies: 2 comments 1 reply
-
容器通讯用服务名就行了吧 |
Beta Was this translation helpful? Give feedback.
0 replies
-
是的,使用服务名或者容器名是可以的。 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
1Panel 版本
1.10.14tls
请描述您的需求或者改进建议
建议应用在启动时指定 ip,这样就不会在服务器重启之后,由于启动顺序导致 ip 变化
请描述你建议的实现方案
在安装应用时,如果使用的是 1panel-network 网卡,根据已经使用的 ip 往后延顺
并在生产的 docker-compose 配置文件 添加上 指定 ip 的方法
networks:
1panel-network:
ipv4_address: 根据已经使用的 ip 往后延顺的
这样可以解决由于重启系统,或 docker 原因,由于容器的启动顺序而导致反代服务器由于反代 ip 的服务变化,而造成的问题
附加信息
No response
Beta Was this translation helpful? Give feedback.
All reactions