From 398eccc4c7106729080d0ea3e12ec6befafa1ee4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Tue, 7 Jul 2020 16:12:30 +0200 Subject: [PATCH] add sonar and asyncapi --- docker-compose.yml | 49 +++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 3828315..882e750 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -15,6 +15,10 @@ networks: external: false swagger: external: false + sonar: + external: false + asyncapi: + external: false services: smtp: @@ -27,6 +31,7 @@ services: - sentry - gitea - youtrack + - sonar drone-db: image: postgres:10 @@ -268,4 +273,46 @@ services: ports: - "127.0.0.1:8082:8080" environment: - URLS: "[ { name: \"Input Service\", url: \"https://git.kmlabz.com/birbnetes/swagger-docs/raw/branch/master/input.yml\"}, { name: \"Storage Service\", url: \"https://git.kmlabz.com/birbnetes/swagger-docs/raw/branch/master/storage.yml\" }, { name: \"Extractor Service\", url: \"https://git.kmlabz.com/birbnetes/swagger-docs/raw/branch/master/extractor.yaml\" }, {name: \"Output Service (RDB)\", url: \"https://git.kmlabz.com/birbnetes/swagger-docs/raw/branch/master/output-service-rdb.yml\"} ]" \ No newline at end of file + URLS: "[ { name: \"Input Service\", url: \"https://git.kmlabz.com/birbnetes/swagger-docs/raw/branch/master/input.yml\"}, { name: \"Storage Service\", url: \"https://git.kmlabz.com/birbnetes/swagger-docs/raw/branch/master/storage.yml\" }, { name: \"Extractor Service\", url: \"https://git.kmlabz.com/birbnetes/swagger-docs/raw/branch/master/extractor.yaml\" }, {name: \"Output Service (RDB)\", url: \"https://git.kmlabz.com/birbnetes/swagger-docs/raw/branch/master/output-service-rdb.yml\"} ]" + + sonar: + image: sonarqube:community + depends_on: + - sonar-db + networks: + - sonar + volumes: + - ./sonar/conf:/opt/sonarqube/conf + - ./sonar/data:/opt/sonarqube/data + - ./sonar/extensions:/opt/sonarqube/extensions + ports: + - "127.0.0.1:8989:9000" + dns: + - 1.1.1.1 + - 8.8.8.8 + environment: + - SONARQUBE_JDBC_URL=jdbc:postgresql://sonar-db:5432/sonar + - SONARQUBE_JDBC_PASSWORD=sonar + - SONARQUBE_JDBC_USERNAME=sonar + + sonar-db: + image: postgres:12 + volumes: + - ./postgres-sonar:/var/lib/postgresql/data + environment: + - POSTGRES_PASSWORD=sonar + - POSTGRES_USER=sonar + - POSTGRES_DB=sonar + networks: + - sonar + dns: + - 1.1.1.1 + - 8.8.8.8 + + asyncapi: + restart: unless-stopped + image: registry.kmlabz.com/birbnetes/asyncapi + ports: + - "127.0.0.1:8282:80" + networks: + - asyncapi