-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add docker configuration for Simple UI
add a docker configuration for the Simple UI. Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
- Loading branch information
1 parent
195e9e2
commit 3475d62
Showing
2 changed files
with
197 additions
and
0 deletions.
There are no files selected for viewing
116 changes: 116 additions & 0 deletions
116
hawkbit-runtime/docker/docker-compose-micro-services-mysql-with-simple-ui.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
# | ||
# Copyright (c) 2018 Bosch Software Innovations GmbH and others | ||
# | ||
# This program and the accompanying materials are made | ||
# available under the terms of the Eclipse Public License 2.0 | ||
# which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
# | ||
# SPDX-License-Identifier: EPL-2.0 | ||
# | ||
version: '3.7' | ||
|
||
include: | ||
- docker-compose-deps-mysql.yml | ||
|
||
# EXPERIMENTAL! | ||
services: | ||
|
||
# --------------------- | ||
# HawkBit DDI | ||
# --------------------- | ||
hawkbit-ddi: | ||
image: "hawkbit/hawkbit-ddi-server:latest-mysql" | ||
environment: | ||
- 'SPRING_DATASOURCE_URL=jdbc:mariadb://mysql:3306/hawkbit' | ||
- 'SPRING_RABBITMQ_HOST=rabbitmq' | ||
- 'SPRING_RABBITMQ_USERNAME=guest' | ||
- 'SPRING_RABBITMQ_PASSWORD=guest' | ||
- 'SPRING_DATASOURCE_USERNAME=root' | ||
restart: always | ||
ports: | ||
- "8081:8081" | ||
depends_on: | ||
mysql: | ||
condition: service_healthy | ||
labels: | ||
NAME: "hawkbit-ddi" | ||
|
||
# --------------------- | ||
# HawkBit DMF | ||
# --------------------- | ||
hawkbit-dmf: | ||
image: "hawkbit/hawkbit-dmf-server:latest-mysql" | ||
environment: | ||
- 'SPRING_DATASOURCE_URL=jdbc:mariadb://mysql:3306/hawkbit' | ||
- 'SPRING_RABBITMQ_HOST=rabbitmq' | ||
- 'SPRING_RABBITMQ_USERNAME=guest' | ||
- 'SPRING_RABBITMQ_PASSWORD=guest' | ||
- 'SPRING_DATASOURCE_USERNAME=root' | ||
restart: always | ||
depends_on: | ||
mysql: | ||
condition: service_healthy | ||
labels: | ||
NAME: "hawkbit-dmf" | ||
|
||
# --------------------- | ||
# HawkBit MGMT | ||
# --------------------- | ||
hawkbit-mgmt: | ||
image: "hawkbit/hawkbit-mgmt-server:latest-mysql" | ||
environment: | ||
- 'SPRING_DATASOURCE_URL=jdbc:mariadb://mysql:3306/hawkbit' | ||
- 'SPRING_RABBITMQ_HOST=rabbitmq' | ||
- 'SPRING_RABBITMQ_USERNAME=guest' | ||
- 'SPRING_RABBITMQ_PASSWORD=guest' | ||
- 'SPRING_DATASOURCE_USERNAME=root' | ||
volumes: | ||
- artifactrepo:/artifactrepo | ||
restart: always | ||
ports: | ||
- "8080:8080" | ||
depends_on: | ||
mysql: | ||
condition: service_healthy | ||
labels: | ||
NAME: "hawkbit-mgmt" | ||
|
||
# --------------------- | ||
# HawkBit Simple UI | ||
# --------------------- | ||
hawkbit-simple-ui: | ||
image: "hawkbit/hawkbit-simple-ui:latest-mysql" | ||
environment: | ||
- 'SPRING_APPLICATION_JSON={"hawkbit.server.mgmtUrl": "http://hawkbit-mgmt:8080"}' | ||
volumes: | ||
- artifactrepo:/artifactrepo | ||
ports: | ||
- 8088:8088 | ||
|
||
# # --------------------- | ||
# # HawkBit Vaadin 8 based UI (NOT SUPPORTED!) | ||
# # Outdated and not supported - may not work or lead to problems. | ||
# # NOT Recommended - use it only AT YOUR RISK! | ||
# # --------------------- | ||
# hawkbit-vv8ui: | ||
# image: "hawkbit/hawkbit-vv8-ui:latest-mysql" | ||
# environment: | ||
# - 'SPRING_DATASOURCE_URL=jdbc:mariadb://mysql:3306/hawkbit' | ||
# - 'SPRING_RABBITMQ_HOST=rabbitmq' | ||
# - 'SPRING_RABBITMQ_USERNAME=guest' | ||
# - 'SPRING_RABBITMQ_PASSWORD=guest' | ||
# - 'SPRING_DATASOURCE_USERNAME=root' | ||
# volumes: | ||
# - artifactrepo:/artifactrepo | ||
# restart: always | ||
# ports: | ||
# - "8082:8082" | ||
# depends_on: | ||
# mysql: | ||
# condition: service_healthy | ||
# labels: | ||
# NAME: "hawkbit-vv8-ui" | ||
|
||
volumes: | ||
artifactrepo: | ||
driver: local |
81 changes: 81 additions & 0 deletions
81
hawkbit-runtime/docker/docker-compose-monolith-mysql-with-simple-ui.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
# | ||
# Copyright (c) 2018 Bosch Software Innovations GmbH and others | ||
# | ||
# This program and the accompanying materials are made | ||
# available under the terms of the Eclipse Public License 2.0 | ||
# which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
# | ||
# SPDX-License-Identifier: EPL-2.0 | ||
# | ||
version: '3' | ||
|
||
services: | ||
|
||
# --------------------- | ||
# RabbitMQ service | ||
# --------------------- | ||
rabbitmq: | ||
image: "rabbitmq:3-management" | ||
restart: always | ||
ports: | ||
- "15672:15672" | ||
- "5672:5672" | ||
labels: | ||
NAME: "rabbitmq" | ||
|
||
# --------------------- | ||
# MySQL service | ||
# --------------------- | ||
mysql: | ||
image: "mysql:8.0" | ||
environment: | ||
MYSQL_DATABASE: "hawkbit" | ||
# MYSQL_USER: "root" is created by default in the container for mysql 8.0+ | ||
MYSQL_ALLOW_EMPTY_PASSWORD: "true" | ||
restart: always | ||
ports: | ||
- "3306:3306" | ||
healthcheck: | ||
test: [ "CMD", "mysqladmin" ,"ping", "-h", "localhost" ] | ||
timeout: 20s | ||
retries: 10 | ||
labels: | ||
NAME: "mysql" | ||
|
||
# --------------------- | ||
# HawkBit service | ||
# --------------------- | ||
hawkbit: | ||
image: "hawkbit/hawkbit-update-server:latest-mysql" | ||
environment: | ||
- 'SPRING_DATASOURCE_URL=jdbc:mariadb://mysql:3306/hawkbit' | ||
- 'SPRING_RABBITMQ_HOST=rabbitmq' | ||
- 'SPRING_RABBITMQ_USERNAME=guest' | ||
- 'SPRING_RABBITMQ_PASSWORD=guest' | ||
- 'SPRING_DATASOURCE_USERNAME=root' | ||
volumes: | ||
- artifactrepo:/artifactrepo | ||
restart: always | ||
ports: | ||
- "8080:8080" | ||
depends_on: | ||
mysql: | ||
condition: service_healthy | ||
labels: | ||
NAME: "hawkbit" | ||
|
||
# --------------------- | ||
# HawkBit Simple UI service | ||
# --------------------- | ||
hawkbit-simple-ui: | ||
image: "hawkbit/hawkbit-simple-ui:latest-mysql" | ||
environment: | ||
- 'SPRING_APPLICATION_JSON={"hawkbit.server.mgmtUrl": "http://hawkbit:8080"}' | ||
volumes: | ||
- artifactrepo:/artifactrepo | ||
ports: | ||
- 8088:8088 | ||
|
||
volumes: | ||
artifactrepo: | ||
driver: local |