mirror of
https://gitee.com/kennylee/docker.git
synced 2024-12-02 03:48:15 +08:00
38 lines
1003 B
YAML
38 lines
1003 B
YAML
|
jenkins:
|
|||
|
build: jenkins # 根据实际情况修改
|
|||
|
ports:
|
|||
|
- 8051:8080
|
|||
|
- 45000:50000
|
|||
|
container_name: jenkins
|
|||
|
restart: always
|
|||
|
environment:
|
|||
|
- TZ=Asia/Shanghai
|
|||
|
- JAVA_OPTS=-Dhudson.footerURL=http://www.timekey.com.cn/
|
|||
|
volumes:
|
|||
|
- /home/subversion/:/home/subversion/
|
|||
|
- /home/jenkins_home/:/var/jenkins_home/ # 注意权限问题,建议777,不然造成无法启动问题。
|
|||
|
links:
|
|||
|
- sonar_web:sonar_web
|
|||
|
- sonar_db:sonar_db
|
|||
|
sonar_web:
|
|||
|
image: sonarqube:5.1.2
|
|||
|
container_name: sonar-web
|
|||
|
ports:
|
|||
|
- "9000:9000"
|
|||
|
links:
|
|||
|
- sonar_db:postgres
|
|||
|
restart: always
|
|||
|
environment:
|
|||
|
- SONARQUBE_JDBC_URL=jdbc:postgresql://postgres:5432/sonar
|
|||
|
- TZ=Asia/Shanghai
|
|||
|
sonar_db:
|
|||
|
image: postgres
|
|||
|
container_name: sonar-db
|
|||
|
restart: always
|
|||
|
ports:
|
|||
|
- 9432:5432
|
|||
|
environment:
|
|||
|
- TZ=Asia/Shanghai
|
|||
|
- POSTGRES_USER=sonar
|
|||
|
- POSTGRES_PASSWORD=sonar
|