Created
June 28, 2017 06:27
-
-
Save gokusenz/e34c7c81a55d808863ec11f7e1e0eb04 to your computer and use it in GitHub Desktop.
SonarQube - docker-compose.yml
This file contains 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: '2' | |
services: | |
sonar: | |
image: sonarqube:5.6.6-alpine | |
ports: | |
- "9000:9000" | |
depends_on: | |
- sonardb | |
environment: | |
- SONARQUBE_JDBC_URL=jdbc:mysql://sonardb:3306/sonar?useUnicode=true&characterEncoding=utf8 | |
- SONARQUBE_JDBC_USERNAME=sonar | |
- SONARQUBE_JDBC_PASSWORD=sonarmysql | |
sonardb: | |
image: mysql:5.7.17 | |
volumes_from: | |
- volumes_data | |
ports: | |
- "3306:3306" | |
environment: | |
MYSQL_DATABASE: sonar | |
MYSQL_USER: sonar | |
MYSQL_PASSWORD: sonarmysql | |
MYSQL_ROOT_PASSWORD: sonarroot | |
volumes_data: | |
image: tianon/true | |
volumes: | |
- ./data/mysql:/var/lib/mysql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment