限制容器异常退出后最多自动重启三次

This commit is contained in:
2026-09-09 14:26:34 +08:00
parent 3727ff141c
commit 250b623f3a
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
name: firstleg-${DEPLOY_ENV:-test}
x-common: &common
restart: unless-stopped
restart: "on-failure:3"
networks: [firstleg-network, infra-network]
# 测试机复用宿主机的 MySQL、Redis、Nacos 时,容器通过此别名访问宿主机。
extra_hosts: