mirror of
https://gitee.com/kennylee/docker.git
synced 2024-12-04 04:48:39 +08:00
21 lines
440 B
YAML
21 lines
440 B
YAML
|
web:
|
||
|
image: sonarqube:5.1.2
|
||
|
ports:
|
||
|
- "9000:9000"
|
||
|
links:
|
||
|
- db:postgres
|
||
|
restart: always
|
||
|
environment:
|
||
|
- SONARQUBE_JDBC_URL=jdbc:postgresql://postgres:5432/sonar
|
||
|
- TZ=Asia/Shanghai
|
||
|
volumes:
|
||
|
- /home/subversion/:/home/subversion/
|
||
|
db:
|
||
|
image: postgres
|
||
|
restart: always
|
||
|
expose:
|
||
|
- 5432
|
||
|
environment:
|
||
|
- POSTGRES_USER=sonar
|
||
|
- POSTGRES_PASSWORD=sonar
|