-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
executable file
·56 lines (52 loc) · 1.19 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
version: '3.0'
services:
jenkins:
build: ./jenkins
restart: always
ports:
- "18080:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /usr/bin/docker:/usr/bin/docker
- jenkins-data:/var/lib/jenkins/
depends_on:
- sonar
environment:
- SONAR_PORT=9000
- SONAR_DB_PORT=5432
sonardb:
image: postgres:9.6
restart: always
ports:
- "5433:5432"
environment:
- POSTGRES_USER=sonar
- POSTGRES_PASSWORD=sonar
volumes:
- ./sonar/db:/var/lib/postgresql/data
sonar:
image: sonarqube:8.9-community
restart: always
ports:
- "19000:9000"
- "19092:9092"
depends_on:
- sonardb
volumes:
- ./sonar/data:/opt/sonarqube/data
environment:
- SONARQUBE_JDBC_URL=jdbc:postgresql://sonardb:5432/sonar
- SONARQUBE_JDBC_USERNAME=sonar
- SONARQUBE_JDBC_PASSWORD=sonar
- SONARQUBE_ADMIN_PASSWORD=admin
api-catalog-db:
container_name: api-catalog-db
image: mysql:5.7
restart: always
environment:
MYSQL_DATABASE: 'flights_catalog'
MYSQL_ROOT_PASSWORD: 'muppet'
ports:
- 3310:3306
volumes:
jenkins-data: