Splitting monolith app to micro services (#1490)
Signed-off-by: Marinov Avgustin <Avgustin.Marinov@bosch.com>
This commit is contained in:
56
hawkbit-runtime/docker/docker-compose-monolith-mysql.yml
Normal file
56
hawkbit-runtime/docker/docker-compose-monolith-mysql.yml
Normal file
@@ -0,0 +1,56 @@
|
||||
#
|
||||
# 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"
|
||||
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'
|
||||
restart: always
|
||||
ports:
|
||||
- "8080:8080"
|
||||
labels:
|
||||
NAME: "hawkbit"
|
||||
Reference in New Issue
Block a user