Files
hawkbit/hawkbit-runtime/docker/docker-compose.yml
Michael Gilroy ae4fb5fe00 Remove mysql_user and update documentation (#1139)
* Remove mysql_user and update documentation

* MG, udpate based on maintainers feedback

* Remove extra comments for password, already in doc
2021-10-28 17:24:42 +02:00

58 lines
1.4 KiB
YAML

#
# Copyright (c) 2018 Bosch Software Innovations GmbH and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
#
version: '3'
services:
# ---------------------
# RabbitMQ service
# ---------------------
rabbitmq:
image: "rabbitmq:3-management"
environment:
RABBITMQ_DEFAULT_VHOST: "/"
restart: always
ports:
- "15672:15672"
- "5672:5672"
labels:
NAME: "rabbitmq"
# ---------------------
# MySQL service
# ---------------------
mysql:
image: "mysql:5.7"
environment:
MYSQL_DATABASE: "hawkbit"
# MYSQL_USER: "root" is created by default in the container for mysql 5.7+
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:mysql://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"