Hi,
I tried to deploy SonarQube in the Azure app service using the docker-compose file, and it worked. However, when I tried to log in, SonarQube would only redirect me to the login screen, thus I was unable to log in. There were no issues recorded in the app service log. I’ve included the compose file I’m using right now.
version: "3"
services:
sonarqube:
image: sonarqube:9.7.1-community
command: "-Dsonar.search.javaAdditionalOpts=-Dnode.store.allow_mmap=false"
depends_on:
- db
environment:
SONAR_JDBC_URL: jdbc:postgresql://db:5432/sonar
SONAR_JDBC_USERNAME: sonar
SONAR_JDBC_PASSWORD: sonar
volumes:
- sonarqube_data:/opt/sonarqube/data
- sonarqube_extensions:/opt/sonarqube/extensions
- sonarqube_logs:/opt/sonarqube/logs
ports:
- "9000:9000"
networks:
- "network"
db:
image: postgres:12
environment:
POSTGRES_USER: sonar
POSTGRES_PASSWORD: sonar
volumes:
- postgresql:/var/lib/postgresql
- postgresql_data:/var/lib/postgresql/data
networks:
- "network"
volumes:
sonarqube_data:
sonarqube_extensions:
sonarqube_logs:
postgresql:
postgresql_data:
networks:
network:
external:
name: sonar
Would you kindly check and let me know if there is a fix?