{"action":"closed","issue":{"url":"https://api.github.com/repos/SonarSource/docker-sonarqube/issues/122","repository_url":"https://api.github.com/repos/SonarSource/docker-sonarqube","labels_url":"https://api.github.com/repos/SonarSource/docker-sonarqube/issues/122/labels{/name}","comments_url":"https://api.github.com/repos/SonarSource/docker-sonarqube/issues/122/comments","events_url":"https://api.github.com/repos/SonarSource/docker-sonarqube/issues/122/events","html_url":"https://github.com/SonarSource/docker-sonarqube/issues/122","id":274338919,"number":122,"title":"Cannot start sonarqube with mysql","user":{"login":"YordanBorisov","id":3167529,"avatar_url":"https://avatars2.githubusercontent.com/u/3167529?v=4","gravatar_id":"","url":"https://api.github.com/users/YordanBorisov","html_url":"https://github.com/YordanBorisov","followers_url":"https://api.github.com/users/YordanBorisov/followers","following_url":"https://api.github.com/users/YordanBorisov/following{/other_user}","gists_url":"https://api.github.com/users/YordanBorisov/gists{/gist_id}","starred_url":"https://api.github.com/users/YordanBorisov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YordanBorisov/subscriptions","organizations_url":"https://api.github.com/users/YordanBorisov/orgs","repos_url":"https://api.github.com/users/YordanBorisov/repos","events_url":"https://api.github.com/users/YordanBorisov/events{/privacy}","received_events_url":"https://api.github.com/users/YordanBorisov/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-11-15T23:14:37Z","updated_at":"2017-11-15T23:25:44Z","closed_at":"2017-11-15T23:25:44Z","author_association":"NONE","body":"```\r\nsonar:\r\n  build: .\r\n  ports:\r\n   - \"9000:9000\"\r\n  links:\r\n   - mysql:mysql\r\n  environment:\r\n   - ADOP_LDAP_ENABLED=false\r\n   - SONARQUBE_JDBC_USERNAME=sonar\r\n   - SONARQUBE_JDBC_PASSWORD=sonar\r\n   - SONARQUBE_JDBC_URL=jdbc:mysql://mysql:3306/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true\r\nmysql:\r\n image: mysql:5.7\r\n environment:\r\n  - MYSQL_USER=sonar\r\n  - MYSQL_PASSWORD=sonar\r\n  - MYSQL_DATABASE=sonar\r\n  - MYSQL_ROOT_PASSWORD=sonar\r\n ports:\r\n  - \"3306:3306\"\r\n```\r\nand I get for sonar  in docker logs:\r\n```\r\nerror: database is uninitialized and password option is not specified \r\n  You need to specify one of MYSQL_ROOT_PASSWORD, MYSQL_ALLOW_EMPTY_PASSWORD and MYSQL_RANDOM_ROOT_PASSWORD\r\n```\r\n\r\nand mysql container is running normal."}}
{"actor":{"display_login":"Godin"}}