2024-11-20 18:08:11 +02:00
|
|
|
#
|
|
|
|
|
# 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-postgres.yml
|
|
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
|
2025-04-24 16:40:55 +03:00
|
|
|
# ---------------------
|
|
|
|
|
# HawkBit DB Init
|
|
|
|
|
# ---------------------
|
|
|
|
|
hawkbit-db-init:
|
|
|
|
|
image: "hawkbit/hawkbit-repository-jpa-init:latest"
|
|
|
|
|
environment:
|
|
|
|
|
- 'HAWKBIT_DB_MODE=migrate'
|
|
|
|
|
- 'SPRING_DATASOURCE_URL=jdbc:postgresql://postgres:5432/hawkbit'
|
|
|
|
|
- 'SPRING_DATASOURCE_USERNAME=postgres'
|
|
|
|
|
- 'SPRING_DATASOURCE_PASSWORD=admin'
|
|
|
|
|
- 'AND_THEN=sleep infinity'
|
|
|
|
|
restart: always
|
|
|
|
|
healthcheck:
|
|
|
|
|
test: ["CMD", "pgrep", "sleep"]
|
|
|
|
|
start_period: 30s
|
|
|
|
|
interval: 10s
|
|
|
|
|
retries: 5
|
|
|
|
|
timeout: 60s
|
|
|
|
|
depends_on:
|
2025-10-28 11:30:02 +02:00
|
|
|
postgres:
|
2025-04-24 16:40:55 +03:00
|
|
|
condition: service_healthy
|
|
|
|
|
labels:
|
|
|
|
|
NAME: "hawkbit-db-init"
|
|
|
|
|
|
2024-11-20 18:08:11 +02:00
|
|
|
# ---------------------
|
|
|
|
|
# HawkBit service
|
|
|
|
|
# ---------------------
|
|
|
|
|
hawkbit:
|
|
|
|
|
image: "hawkbit/hawkbit-update-server:latest"
|
|
|
|
|
environment:
|
|
|
|
|
- 'PROFILES=postgresql'
|
2025-04-24 16:40:55 +03:00
|
|
|
- 'SPRING_FLYWAY_ENABLED=false'
|
2024-11-20 18:08:11 +02:00
|
|
|
- 'SPRING_DATASOURCE_URL=jdbc:postgresql://postgres:5432/hawkbit'
|
|
|
|
|
- 'SPRING_DATASOURCE_USERNAME=postgres'
|
|
|
|
|
- 'SPRING_DATASOURCE_PASSWORD=admin'
|
|
|
|
|
- 'SPRING_RABBITMQ_HOST=rabbitmq'
|
|
|
|
|
- 'SPRING_RABBITMQ_USERNAME=guest'
|
|
|
|
|
- 'SPRING_RABBITMQ_PASSWORD=guest'
|
|
|
|
|
volumes:
|
2025-11-19 15:44:15 +02:00
|
|
|
- artifactrepo:/app/artifactrepo
|
2024-11-20 18:08:11 +02:00
|
|
|
restart: always
|
|
|
|
|
ports:
|
|
|
|
|
- "8080:8080"
|
|
|
|
|
depends_on:
|
2025-04-24 16:40:55 +03:00
|
|
|
hawkbit-db-init:
|
2024-11-20 18:08:11 +02:00
|
|
|
condition: service_healthy
|
|
|
|
|
labels:
|
|
|
|
|
NAME: "hawkbit"
|
|
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
|
artifactrepo:
|
|
|
|
|
driver: local
|