Created
March 31, 2022 18:28
-
-
Save lex64/a0ef5f46bdf382e42d7b76e2ebd571fb to your computer and use it in GitHub Desktop.
sonarqube production ready docker compose
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: | |
sonarqube: | |
image: sonarqube:community | |
expose: | |
- 9000 | |
ports: | |
- "127.0.0.1:9000:9000" | |
networks: | |
- sonarnet | |
environment: | |
- sonar.jdbc.url=jdbc:postgresql://db:5432/sonar | |
- sonar.jdbc.username=sonar | |
- sonar.jdbc.password=sonar | |
volumes: | |
- sonarqube_conf:/opt/sonarqube/conf | |
- sonarqube_data:/opt/sonarqube/data | |
- sonarqube_extensions:/opt/sonarqube/extensions | |
- sonarqube_bundled-plugins:/opt/sonarqube/lib/bundled-plugins | |
db: | |
image: postgres | |
networks: | |
- sonarnet | |
environment: | |
- POSTGRES_USER=sonar | |
- POSTGRES_PASSWORD=sonar | |
volumes: | |
- postgresql:/var/lib/postgresql | |
- postgresql_data:/var/lib/postgresql/data | |
ulimits: | |
nofile: | |
soft: 65536 | |
hard: 65536 | |
networks: | |
sonarnet: | |
volumes: | |
sonarqube_conf: | |
sonarqube_data: | |
sonarqube_extensions: | |
sonarqube_bundled-plugins: | |
postgresql: | |
postgresql_data: | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In case you get error
run
sudo sysctl -w vm.max_map_count=262144
on docker host