Update nginx-golang-mysql dockercompose (#141)
* Add missing expose field to docker compose files (#124) Signed-off-by: javi <javier@okteto.com> Signed-off-by: Alvaro Carpio <alvanxp@outlook.com> * add MySql healthcheck to dependency for backend Signed-off-by: Alvaro Carpio <alvanxp@outlook.com> Co-authored-by: Javier López Barba <j.lopezbarb@gmail.com>
This commit is contained in:
parent
744ed86c55
commit
c8370c40c6
@ -5,11 +5,17 @@ services:
|
||||
secrets:
|
||||
- db-password
|
||||
depends_on:
|
||||
- db
|
||||
db:
|
||||
condition: service_healthy
|
||||
db:
|
||||
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:
|
||||
|
Loading…
Reference in New Issue
Block a user