This repository was archived by the owner on Oct 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathdocker-compose.yml
89 lines (85 loc) · 2.92 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
version: '3.4'
services:
sonarqube:
image: sonarqube:8-community
ports:
- "9000:9000"
volumes:
- ./data/sonarqube:/opt/sonarqube/data
- ./logs/sonarqube:/opt/sonarqube/logs
healthcheck:
test: wget -qO- http://localhost:9000/api/system/status | grep -q '"status":"UP"'
interval: 1m
timeout: 10s
retries: 3
start_period: 5m
mongodb:
image: mongo:3.6
ports:
- "27017:27017"
volumes:
- ./data/mongodb:/data/db
jenkins:
build: ./jenkins
ports:
- "8888:8080"
- "50000:50000"
volumes:
- ./data/jenkins:/var/jenkins_home
- ./logs/jenkins:/var/jenkins_home/logs
healthcheck:
test: wget -qO- http://localhost:8080/api/json?tree=mode | grep -q '"NORMAL"'
interval: 1m
timeout: 10s
retries: 3
start_period: 5m
hygieia:
image: hygieiadoc/hygieia-starter-kit:latest
build: ./hygieia-starter-kit
depends_on:
- mongodb
- sonarqube
- jenkins
ports:
- "80:80"
- "8080:8080"
environment:
- PROXY_URL=
- PROXY_PORT=
- PROXY_USERNAME=
- PROXY_PASSWORD=
# - GITHUB_HOST=github.com
# - GITHUB_GRAPHQL_URL=
# - GITHUB_BASE_API_URL=
- GITHUB_CRON=0 1/5 * * * *
#See https://hygieia.github.io/Hygieia/troubleshoot.html for how to get a personal access token
- GITHUB_PERSONAL_ACCESS_TOKEN=
- JENKINS_CRON=0 2/5 * * * *
- JENKINS_SERVER= http://jenkins:8080/
- SONAR_CRON=0 3/5 * * * *
- SONAR_HOST=http://sonarqube:9000
- SONAR_VERSION=8.4
- SONAR_METRICS=ncloc,violations,new_vulnerabilities,critical_violations,major_violations,blocker_violations,tests,test_success_density,test_errors,test_failures,coverage,line_coverage,sqale_index,alert_status,quality_gate_details
- SONAR_USERNAME=
- SONAR_PASSWORD=
privileged: true
# If you want to view logs locally or have mongo data persisted uncomment out the below.
volumes:
# This is for getting container logs locally
- './logs:/hygieia/logs'
# This is for persisting data after the container has stopped
# - './db/data:/var/lib/mongo'