2018-09-21 14:12:47 +02:00
|
|
|
#
|
2023-09-14 11:03:20 +03:00
|
|
|
# Copyright (c) 2018 Bosch Software Innovations GmbH and others
|
2018-09-21 14:12:47 +02:00
|
|
|
#
|
2023-09-14 11:03:20 +03:00
|
|
|
# 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
|
2018-09-21 14:12:47 +02:00
|
|
|
#
|
2023-11-30 15:41:12 +02:00
|
|
|
version: '3.7'
|
2017-12-01 17:16:53 +01:00
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
# ---------------------
|
2018-05-15 17:36:36 +02:00
|
|
|
# MySQL service
|
2017-12-01 17:16:53 +01:00
|
|
|
# ---------------------
|
|
|
|
|
mysql:
|
2023-08-25 15:32:28 +03:00
|
|
|
image: "mysql:8.0"
|
2017-12-01 17:16:53 +01:00
|
|
|
environment:
|
|
|
|
|
MYSQL_DATABASE: "hawkbit"
|
2023-09-01 10:44:00 +03:00
|
|
|
# MYSQL_USER: "root" is created by default in the container for mysql 8.0+
|
2017-12-01 17:16:53 +01:00
|
|
|
MYSQL_ALLOW_EMPTY_PASSWORD: "true"
|
|
|
|
|
restart: always
|
|
|
|
|
ports:
|
|
|
|
|
- "3306:3306"
|
2023-12-04 11:11:49 +02:00
|
|
|
healthcheck:
|
|
|
|
|
test: [ "CMD", "mysqladmin" ,"ping", "-h", "localhost" ]
|
|
|
|
|
timeout: 20s
|
|
|
|
|
retries: 10
|
2017-12-01 17:16:53 +01:00
|
|
|
labels:
|
|
|
|
|
NAME: "mysql"
|
2018-05-15 17:36:36 +02:00
|
|
|
|
2017-12-01 17:16:53 +01:00
|
|
|
# ---------------------
|
2023-11-30 15:41:12 +02:00
|
|
|
# RabbitMQ service
|
2017-12-01 17:16:53 +01:00
|
|
|
# ---------------------
|
2023-11-30 15:41:12 +02:00
|
|
|
rabbitmq:
|
|
|
|
|
image: "rabbitmq:3-management-alpine"
|
|
|
|
|
hostname: "rabbitmq"
|
2017-12-01 17:16:53 +01:00
|
|
|
environment:
|
2023-11-30 15:41:12 +02:00
|
|
|
RABBITMQ_DEFAULT_VHOST: "/"
|
|
|
|
|
RABBITMQ_DEFAULT_USER: "guest"
|
|
|
|
|
RABBITMQ_DEFAULT_PASS: "guest"
|
2017-12-01 17:16:53 +01:00
|
|
|
ports:
|
2023-11-30 15:41:12 +02:00
|
|
|
- "15672:15672"
|
|
|
|
|
- "5672:5672"
|
|
|
|
|
deploy:
|
|
|
|
|
restart_policy:
|
|
|
|
|
condition: on-failure
|
|
|
|
|
|