Files
hawkbit/docker/mysql/docker-compose-monolith-dbinit-mysql.yml
Avgustin Marinov ea9519deae Fix #2928 - add ddi containers volume (#2935)
Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
2026-02-24 12:26:15 +02:00

66 lines
1.6 KiB
YAML

#
# 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'
include:
- docker-compose-deps-mysql.yml
services:
# ---------------------
# HawkBit DB Init
# ---------------------
hawkbit-db-init:
image: "hawkbit/hawkbit-repository-jpa-init:latest"
environment:
- 'HAWKBIT_DB_MODE=migrate'
- 'SPRING_DATASOURCE_URL=jdbc:mariadb://mysql:3306/hawkbit'
- 'SPRING_DATASOURCE_USERNAME=root'
- 'AND_THEN=sleep infinity'
restart: always
healthcheck:
test: ["CMD", "pgrep", "sleep"]
start_period: 30s
interval: 10s
retries: 5
timeout: 60s
depends_on:
mysql:
condition: service_healthy
labels:
NAME: "hawkbit-db-init"
# ---------------------
# HawkBit service
# ---------------------
hawkbit:
image: "hawkbit/hawkbit-update-server:latest"
environment:
- 'PROFILES=mysql'
- 'SPRING_FLYWAY_ENABLED=false'
- 'SPRING_DATASOURCE_URL=jdbc:mariadb://mysql:3306/hawkbit'
- 'SPRING_DATASOURCE_USERNAME=root'
- 'SPRING_RABBITMQ_HOST=rabbitmq'
- 'SPRING_RABBITMQ_USERNAME=guest'
- 'SPRING_RABBITMQ_PASSWORD=guest'
restart: always
ports:
- "8080:8080"
depends_on:
hawkbit-db-init:
condition: service_healthy
labels:
NAME: "hawkbit"
volumes:
- artifactrepo:/app/artifactrepo
volumes:
artifactrepo:
driver: local