Created
July 31, 2024 20:45
-
-
Save diegorondao/5808bc17e74c7385cf89392b9dd1dfa7 to your computer and use it in GitHub Desktop.
Análise de código com SonarQube + Docker + .NET Core
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
postgresql: | |
image: bitnami/postgresql:latest | |
ports: | |
- '5444:5432' | |
volumes: | |
- 'postgresql_data:/bitnami/postgresql' | |
environment: | |
- ALLOW_EMPTY_PASSWORD=yes | |
- POSTGRESQL_USERNAME=bn_sonarqube | |
- POSTGRESQL_DATABASE=bitnami_sonarqube | |
sonarqube: | |
image: bitnami/sonarqube:latest | |
ports: | |
- '9999:9000' | |
environment: | |
- ALLOW_EMPTY_PASSWORD=yes | |
- POSTGRESQL_HOST=postgresql | |
- POSTGRESQL_PORT=5444 | |
- POSTGRESQL_ROOT_USER=postgres | |
- POSTGRESQL_CLIENT_CREATE_DATABASE_NAME=bitnami_sonarqube | |
- POSTGRESQL_CLIENT_CREATE_DATABASE_USERNAME=bn_sonarqube | |
- POSTGRESQL_CLIENT_CREATE_DATABASE_PASSWORD=bitnami1234 | |
- SONARQUBE_DATABASE_NAME=bitnami_sonarqube | |
- SONARQUBE_DATABASE_USER=bn_sonarqube | |
- SONARQUBE_DATABASE_PASSWORD=bitnami1234 | |
volumes: | |
- 'sonarqube_data:/bitnami/sonarqube' | |
depends_on: | |
- postgresql | |
volumes: | |
sonarqube_data: | |
driver: local | |
postgresql_data: | |
driver: local |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment