forked from cloudacademy/devops-jenkins-sonarqube
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
57 lines (56 loc) · 1.27 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
version: "3.5"
services:
jenkins:
container_name: jenkins
image: jenkins/jenkins:lts
networks:
- cloudacademylabs
ports:
- "8080:8080"
environment:
- DOCKER_HOST=tcp://socat:2375
depends_on:
- socat
socat:
container_name: socat
image: socat-ca:latest
#image: alpine/socat:latest
networks:
- cloudacademylabs
command: tcp-listen:2375,fork,reuseaddr unix-connect:/var/run/docker.sock
volumes:
- /var/run/docker.sock:/var/run/docker.sock
expose:
- "2375"
postgres:
container_name: postgres
image: postgres-ca:latest
#image: postgres:9.6
networks:
- cloudacademylabs
environment:
POSTGRES_USER: sonar
POSTGRES_PASSWORD: sonarpasswd
ulimits:
nproc: 65535
nofile:
soft: 32000
hard: 40000
sonarqube:
container_name: sonarqube
image: sonarqube-ca:latest
#image: sonarqube:7.1
ports:
- "9000:9000"
- "9092:9092"
networks:
- cloudacademylabs
environment:
SONARQUBE_JDBC_USERNAME: sonar
SONARQUBE_JDBC_PASSWORD: sonarpasswd
SONARQUBE_JDBC_URL: "jdbc:postgresql://postgres:5432/sonar"
depends_on:
- postgres
networks:
cloudacademylabs:
name: cloudacademylabs