Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Persistent Data and Configuration for SonarQube Docker Container #7

Open
talatghafoor opened this issue Feb 10, 2024 · 1 comment
Open

Comments

@talatghafoor
Copy link

Issue Description

Currently, when running the SonarQube Docker container, the settings and state are not persisted between container restarts. This leads to a loss of configuration and data upon server restarts, which is inconvenient and can lead to data loss or misconfiguration.

@talatghafoor
Copy link
Author

Solution Description

To enable persistence of data and configuration in the SonarQube Docker container, follow these steps:

  1. Create Docker volumes:

    docker volume create sonarqube_data
    docker volume create sonarqube_conf
    
    docker run -d --name sonarqube \
    -p 9000:9000 \
    -v sonarqube_data:/opt/sonarqube/data \
    -v sonarqube_conf:/opt/sonarqube/conf \
    [Insert Image ID]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant