Add postgress docker compose examples + Flyway Modularity Support (#2089)
* added postgress docker compose examples * move mysql flyway into server (remove from hawkbit-repository-jpa-flyway) * in starters is added posgress and sqlserver flyway support - see [Flyway Modularity](https://github.com/flyway/flyway/issues/3780) _release_notes_ Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
This commit is contained in:
43
docker/docker-compose-monolith-postgres.yml
Normal file
43
docker/docker-compose-monolith-postgres.yml
Normal file
@@ -0,0 +1,43 @@
|
||||
#
|
||||
# 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:
|
||||
|
||||
# ---------------------
|
||||
# HawkBit service
|
||||
# ---------------------
|
||||
hawkbit:
|
||||
image: "hawkbit/hawkbit-update-server:latest"
|
||||
environment:
|
||||
- 'PROFILES=postgresql'
|
||||
- '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:
|
||||
- artifactrepo:/artifactrepo
|
||||
restart: always
|
||||
ports:
|
||||
- "8080:8080"
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
labels:
|
||||
NAME: "hawkbit"
|
||||
|
||||
volumes:
|
||||
artifactrepo:
|
||||
driver: local
|
||||
Reference in New Issue
Block a user