hawkbit docker containers made to wait for mysql (#1498)

Signed-off-by: Marinov Avgustin <Avgustin.Marinov@bosch.com>
This commit is contained in:
Avgustin Marinov
2023-12-04 11:11:49 +02:00
committed by GitHub
parent 341e8a4a0c
commit d0bb7b61d8
3 changed files with 19 additions and 0 deletions

View File

@@ -22,6 +22,10 @@ services:
restart: always
ports:
- "3306:3306"
healthcheck:
test: [ "CMD", "mysqladmin" ,"ping", "-h", "localhost" ]
timeout: 20s
retries: 10
labels:
NAME: "mysql"

View File

@@ -28,6 +28,9 @@ services:
restart: always
ports:
- "8081:8081"
depends_on:
mysql:
condition: service_healthy
labels:
NAME: "hawkbit-ddi"
@@ -43,6 +46,9 @@ services:
- 'SPRING_RABBITMQ_PASSWORD=guest'
- 'SPRING_DATASOURCE_USERNAME=root'
restart: always
depends_on:
mysql:
condition: service_healthy
labels:
NAME: "hawkbit-dmf"
@@ -62,6 +68,9 @@ services:
restart: always
ports:
- "8080:8080"
depends_on:
mysql:
condition: service_healthy
labels:
NAME: "hawkbit-mgmt"
@@ -82,6 +91,9 @@ services:
restart: always
ports:
- "8082:8082"
depends_on:
mysql:
condition: service_healthy
labels:
NAME: "hawkbit-vv8-ui"

View File

@@ -54,6 +54,9 @@ services:
restart: always
ports:
- "8080:8080"
depends_on:
mysql:
condition: service_healthy
labels:
NAME: "hawkbit"