2023-11-30 15:41:12 +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.7'
|
|
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
# ---------------------
|
|
|
|
|
# Postgres service
|
|
|
|
|
# ---------------------
|
|
|
|
|
postgres:
|
2024-11-20 18:08:11 +02:00
|
|
|
image: "postgres:16.5"
|
2023-11-30 15:41:12 +02:00
|
|
|
ports:
|
|
|
|
|
- "5432:5432"
|
|
|
|
|
deploy:
|
|
|
|
|
restart_policy:
|
|
|
|
|
condition: on-failure
|
|
|
|
|
environment:
|
2026-02-09 08:52:33 +02:00
|
|
|
POSTGRES_DB: "hawkbit"
|
2023-11-30 15:41:12 +02:00
|
|
|
POSTGRES_USER: "postgres"
|
|
|
|
|
POSTGRES_PASSWORD: "admin"
|
2024-11-20 18:08:11 +02:00
|
|
|
healthcheck:
|
2026-02-09 08:52:33 +02:00
|
|
|
test: ["CMD-SHELL", "pg_isready -d ${POSTGRES_DB:-hawkbit} -U ${POSTGRES_USER:-postgres}"]
|
2024-11-20 18:08:11 +02:00
|
|
|
interval: 20s
|
|
|
|
|
retries: 10
|
2023-11-30 15:41:12 +02:00
|
|
|
|
|
|
|
|
# ---------------------
|
|
|
|
|
# RabbitMQ service
|
|
|
|
|
# ---------------------
|
|
|
|
|
rabbitmq:
|
2025-04-24 16:40:55 +03:00
|
|
|
image: "rabbitmq:4-management-alpine"
|
2023-11-30 15:41:12 +02:00
|
|
|
hostname: "rabbitmq"
|
|
|
|
|
environment:
|
|
|
|
|
RABBITMQ_DEFAULT_VHOST: "/"
|
|
|
|
|
RABBITMQ_DEFAULT_USER: "guest"
|
|
|
|
|
RABBITMQ_DEFAULT_PASS: "guest"
|
|
|
|
|
ports:
|
|
|
|
|
- "15672:15672"
|
|
|
|
|
- "5672:5672"
|
|
|
|
|
deploy:
|
|
|
|
|
restart_policy:
|
2026-02-09 08:52:33 +02:00
|
|
|
condition: on-failure
|