Forked from batmat/sonarqube-mysql-docker-compose.yml
Last active
September 19, 2018 12:18
-
-
Save humbertodias/f477bd5bd5363775929da9fcf2fcf8fc to your computer and use it in GitHub Desktop.
Working SonarQube + Mysql Dead Simple Docker Compose file
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
sonarqube: | |
image: sonarqube | |
ports: | |
- "9000:9000" | |
- "3306:3306" | |
environment: | |
- SONARQUBE_JDBC_USERNAME=sonar | |
- SONARQUBE_JDBC_PASSWORD=sonar | |
- SONARQUBE_JDBC_URL=jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true | |
db: | |
image: mysql:5.7 | |
command: mysqld --max_allowed_packet=1024M | |
net: container:sonarqube | |
environment: | |
- MYSQL_ROOT_PASSWORD=sonar | |
- MYSQL_DATABASE=sonar | |
- MYSQL_USER=sonar | |
- MYSQL_PASSWORD=sonar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment