Hi,
I am trying to run sonarqube in docker without success.
I have created a network like this :
docker network create sonarqube-network
I am creating mysql server like this :
docker run \
-e "MYSQL_DATABASE=sonarqube" \
-e "MYSQL_USER=sonarqube" \
-e "MYSQL_PASSWORD=sonarqube" \
--name=mysql_server \
--mount type=bind,src=/Users/myUser/docker/mysql/my.cnf,dst=/etc/my.cnf \
--mount type=bind,src=/Users/myUser/docker/mysql/data,dst=/var/lib/mysql \
--network=sonarqube-network -d mysql/mysql-server:5.7 \
--character-set-server=utf8 --collation-server=utf8_general_ci
I am creating sonarqube server like this :
docker run \
-p 9002:9000 -p 9093:9092 \
-e SONARQUBE_JDBC_USERNAME=sonarqube \
-e SONARQUBE_JDBC_PASSWORD=sonarqube \
-e SONARQUBE_JDBC_URL="jdbc:mysql://mysql_server:3306/sonarqube?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true" \
--name=sonarqube1 \
--network=sonarqube-network -d sonarqube
The problem is that sonarqube stops without saying anything first time and second time it says : None of the configured nodes are available
The sonarqube image is on c1637bd4502f meaning on 6.7
Above is run on docker 17.09.0 on Mac High Sierra.
Any ideas what might be the problem ?