Skip to content

Commit cd21ac9

Browse files
authored
docs: update readme to indicate the port binding
1 parent 808b239 commit cd21ac9

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

sonarqube/README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,14 @@ To run a cluster with the Data Center Edition, please refer to Installing SonarQ
102102
103103
## Configuration
104104

105+
### Port binding
106+
107+
By default, the image will use port 9000
108+
109+
```console
110+
docker container run --name sonarqube-custom -p 9000:9000 sonarqube:10.6.0-community
111+
```
112+
105113
### Database
106114

107115
By default, the image will use an embedded H2 database that is not suited for production.
@@ -131,7 +139,7 @@ For upgrade instructions, see Upgrading from the Docker Image on the [Upgrade th
131139
In some environments, it may make more sense to prepare a custom image containing your configuration. A `Dockerfile` to achieve this may be as simple as:
132140

133141
```dockerfile
134-
FROM sonarqube:8.9-community
142+
FROM sonarqube:10.6.0-community
135143
COPY sonar-custom-plugin-1.0.jar /opt/sonarqube/extensions/
136144
```
137145

0 commit comments

Comments
 (0)