Skip to content
GitLab
菜单
项目
群组
代码片段
/
帮助
帮助
支持
社区论坛
快捷键
?
提交反馈
登录/注册
切换导航
菜单
打开侧边栏
KMSCAKKSCFKA AKFACAMADCAS
awesome-composes
提交
006574ee
未验证
提交
006574ee
编辑于
5月 31, 2021
作者:
Alvaro Carpio
提交者:
GitHub
5月 31, 2021
浏览文件
add MySql healthcheck to dependency for backend (#148)
Signed-off-by:
Alvaro Carpio
<
alvanxp@outlook.com
>
上级
66e821ff
变更
1
Hide whitespace changes
Inline
Side-by-side
nginx-flask-mysql/docker-compose.yaml
浏览文件 @
006574ee
...
...
@@ -4,6 +4,11 @@ services:
image
:
mysql:8.0.19
command
:
'
--default-authentication-plugin=mysql_native_password'
restart
:
always
healthcheck
:
test
:
[
"
CMD"
,
"
mysqladmin"
,
"
ping"
,
"
-h"
,
"
127.0.0.1"
,
"
--silent"
]
interval
:
3s
retries
:
5
start_period
:
30s
secrets
:
-
db-password
volumes
:
...
...
@@ -26,11 +31,16 @@ services:
networks
:
-
backnet
-
frontnet
depends_on
:
db
:
condition
:
service_healthy
proxy
:
build
:
proxy
restart
:
always
ports
:
-
80:80
depends_on
:
-
backend
networks
:
-
frontnet
volumes
:
...
...
编辑
预览
支持
Markdown
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录