Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
KMSCAKKSCFKA AKFACAMADCAS
awesome-composes
Commits
006574ee
Unverified
Commit
006574ee
authored
May 31, 2021
by
Alvaro Carpio
Committed by
GitHub
May 31, 2021
Browse files
add MySql healthcheck to dependency for backend (#148)
Signed-off-by:
Alvaro Carpio
<
alvanxp@outlook.com
>
parent
66e821ff
Changes
1
Show whitespace changes
Inline
Side-by-side
nginx-flask-mysql/docker-compose.yaml
View file @
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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment