Unverified Commit c8370c40 authored by Alvaro Carpio's avatar Alvaro Carpio Committed by GitHub
Browse files

Update nginx-golang-mysql dockercompose (#141)



* Add missing expose field to docker compose files (#124)
Signed-off-by: default avatarjavi <javier@okteto.com>
Signed-off-by: default avatarAlvaro Carpio <alvanxp@outlook.com>

* add MySql healthcheck to dependency for backend
Signed-off-by: default avatarAlvaro Carpio <alvanxp@outlook.com>
Co-authored-by: default avatarJavier López Barba <j.lopezbarb@gmail.com>
parent 744ed86c
......@@ -4,12 +4,18 @@ services:
build: backend
secrets:
- db-password
depends_on:
- db
depends_on:
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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment