hawkbit docker containers made to wait for mysql (#1498)
Signed-off-by: Marinov Avgustin <Avgustin.Marinov@bosch.com>
This commit is contained in:
@@ -22,6 +22,10 @@ services:
|
||||
restart: always
|
||||
ports:
|
||||
- "3306:3306"
|
||||
healthcheck:
|
||||
test: [ "CMD", "mysqladmin" ,"ping", "-h", "localhost" ]
|
||||
timeout: 20s
|
||||
retries: 10
|
||||
labels:
|
||||
NAME: "mysql"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -54,6 +54,9 @@ services:
|
||||
restart: always
|
||||
ports:
|
||||
- "8080:8080"
|
||||
depends_on:
|
||||
mysql:
|
||||
condition: service_healthy
|
||||
labels:
|
||||
NAME: "hawkbit"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user