Created
July 15, 2019 08:08
-
-
Save zerojame/c7dabcd19b3d64af8ef93bd638f18b57 to your computer and use it in GitHub Desktop.
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 | |
command: -Dsonar.ce.javaOpts=-Xmx2048m -Dsonar.web.javaOpts=-Xmx2048m | |
ports: | |
- "9000:9000" | |
- "9092:9092" | |
networks: | |
- sonarnet | |
- sonar-server | |
environment: | |
- sonar.jdbc.url=jdbc:postgresql://db:5432/sonar | |
volumes: | |
- sonarqube_conf:/opt/sonarqube/conf | |
- sonarqube_data:/opt/sonarqube/data | |
- sonarqube_extensions:/opt/sonarqube/extensions | |
db: | |
image: postgres | |
networks: | |
- sonarnet | |
environment: | |
- POSTGRES_USER=sonar | |
- POSTGRES_PASSWORD=sonar | |
volumes: | |
- postgresql:/var/lib/postgresql | |
- postgresql_data:/var/lib/postgresql/data | |
networks: | |
sonarnet: | |
driver: bridge | |
sonar-server: | |
external: true | |
volumes: | |
sonarqube_conf: | |
sonarqube_data: | |
sonarqube_extensions: | |
postgresql: | |
postgresql_data: | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment