NeoSOFT-Technologies / brainstorming

Apache License 2.0
3 stars 1 forks source link

I have installed Docker and Docker Compose but I am not able to access SonarQube’s login page. #88

Open pankaj-singh-chauhan opened 2 years ago

pankaj-singh-chauhan commented 2 years ago

image_2022_10_01T07_44_36_090Z image_2022_10_01T07_44_07_236Z image_2022_10_01T07_42_59_543Z

santoshshinde2012 commented 2 years ago

Check your /etc/hosts file may be you are using your default port for other application.

santoshshinde2012 commented 2 years ago

Change the port in your docker compose file to Eg-9000 so that you can access applications on the 9000 port.

version: '2'

services:
  postgresql:
    image: docker.io/bitnami/postgresql:10
    environment:
      - ALLOW_EMPTY_PASSWORD=yes
    volumes:
      - 'postgresql_data:/bitnami/postgresql'
  sonarqube:
    image: docker.io/bitnami/sonarqube:8
    ports:
      - '9000:9000'
    environment:
      - POSTGRESQL_HOST=postgresql
      - POSTGRESQL_ROOT_USER=postgres
      - POSTGRESQL_CLIENT_CREATE_DATABASE_NAME=bitnami_sonarqube
      - POSTGRESQL_CLIENT_CREATE_DATABASE_USERNAME=bn_sonarqube
      - POSTGRESQL_CLIENT_CREATE_DATABASE_PASSWORD=bitnami1234
      - SONARQUBE_DATABASE_NAME=bitnami_sonarqube
      - SONARQUBE_DATABASE_USER=bn_sonarqube
      - SONARQUBE_DATABASE_PASSWORD=bitnami1234
    volumes:
      - sonarqube_data:/bitnami
volumes:
  sonarqube_data:
    driver: local
  postgresql_data:
    driver: local
rishikant-g commented 2 years ago

image I'm also facing the issue while running container

santoshshinde2012 commented 2 years ago

image

image

In the error only you have the solution , please check your docker-compose file.

rishikant-g commented 2 years ago

After doing that I got this. I'm using windows system. image

shubhamvats5822 commented 2 years ago

image I am also facing issue. I have changed the port to 9000 and then 90. But it's still not showin in my browser

pankaj-singh-chauhan commented 2 years ago

image image

pankaj-singh-chauhan commented 2 years ago

image And If I change postgresql:13 to postgresql:10

santoshshinde2012 commented 2 years ago

image_2022_10_01T07_44_36_090Z image_2022_10_01T07_44_07_236Z image_2022_10_01T07_42_59_543Z

https://docs.sonarqube.org/latest/setup/get-started-2-minutes/