-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
85 lines (78 loc) · 1.96 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
version: '2.4'
services:
jenkins:
build: .
image: davarski/jenkins-dev
container_name: jenkins-dev
volumes:
- jenkins_data:/var/jenkins_home
- /var/run/docker.sock:/var/run/docker.sock
environment:
- SONARQUBE_URL=http://sonarqube:9000
- SLACK_WORKSPACE=devops-dev
- SLACK_TOKEN=ExiUpOiyEZnngKc45fEZOc8B
ports:
- 8080:8080
- 8081:8081
depends_on:
- sonarqube
sonarqube:
image: sonarqube:7.8-community
container_name: sonarqube
volumes:
- sonarqube_conf:/opt/sonarqube/conf
- sonarqube_data:/opt/sonarqube/data
- sonarqube_logs:/opt/sonarqube/logs
- sonarqube_extensions:/opt/sonarqube/extensions
environment:
- sonar.jdbc.url=jdbc:postgresql://postgres/sonar
ports:
- 9000:9000
depends_on:
postgres:
condition: service_healthy
postgres:
image: postgres:11-alpine
container_name: postgres
volumes:
- postgresql:/var/lib/postgresql
- postgresql_data:/var/lib/postgresql/data
environment:
- POSTGRES_USER=sonar
- POSTGRES_PASSWORD=sonar
healthcheck:
test: ["CMD-SHELL", "pg_isready -U sonar"]
interval: 10s
timeout: 5s
retries: 5
bitbucket:
image: atlassian/bitbucket-server:7.1-jdk11
container_name: bitbucket
ports:
- 7990:7990
- 7999:7999
links:
- atl_database
volumes:
- bitbucket-data:/var/atlassian/application-data/bitbucket
atl_database:
image: postgres:12.2
container_name: atl_database
ports:
- 5431:5432
volumes:
- atl_database-data:/var/lib/postgresql/data
- ./pg-init-scripts:/docker-entrypoint-initdb.d
environment:
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASSWORD}
volumes:
jenkins_data:
sonarqube_conf:
sonarqube_data:
sonarqube_logs:
sonarqube_extensions:
postgresql:
postgresql_data:
bitbucket-data:
atl_database-data: