Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save humbertodias/f477bd5bd5363775929da9fcf2fcf8fc to your computer and use it in GitHub Desktop.
Save humbertodias/f477bd5bd5363775929da9fcf2fcf8fc to your computer and use it in GitHub Desktop.
Working SonarQube + Mysql Dead Simple Docker Compose file
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