4 Star 17 Fork 35

kancy/docker-compose

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
docker-compose-sonarqube-postgres.yml 1.12 KB
Copy Edit Raw Blame History
kancy authored 2022-05-17 21:16 . 优化
version: '3'
services:
# SonarQube 7.9以上版本已不再支持mysql
# sonarqube:latest
# sonarqube:8.9-community
# 默认账户:admin/admin
sonarqube:
container_name: sonarqube-postgres
image: sonarqube:9.1.0-community
restart: always
ports:
- "9001:9000"
depends_on:
- postgres
environment:
- sonar.jdbc.username=sonar
- sonar.jdbc.password=123456
- sonar.jdbc.url=jdbc:postgresql://postgres:5432/sonarqube
- SONARQUBE_JDBC_USERNAME=sonar
- SONARQUBE_JDBC_PASSWORD=123456
- SONARQUBE_JDBC_URL=jdbc:postgresql://postgres:5432/sonarqube
volumes:
# data files, such as the embedded H2 database and Elasticsearch indexes
- ~/data/docker_file/sonarqube_postgres/data:/opt/sonarqube/data
# contains SonarQube logs about access, web process, CE process, Elasticsearch logs
- ~/data/docker_file/sonarqube_postgres/logs:/opt/sonarqube/logs
# for 3rd party plugins
- ~/data/docker_file/sonarqube_postgres/extensions:/opt/sonarqube/extensions
# config
- ~/data/docker_file/sonarqube_postgres/conf:/opt/sonarqube/conf
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/kancy666/docker-compose.git
git@gitee.com:kancy666/docker-compose.git
kancy666
docker-compose
docker-compose
master

Search