-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
96 lines (90 loc) · 2.16 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
90
91
92
93
94
95
96
version: "3.8"
services:
mule-ee:
container_name: mule-ee-${MULE_VERSION}
image: mule-ee-${MULE_VERSION}-standalone:1.0.1
restart: always
build:
context: ./containers/mule-ee/
dockerfile: Dockerfile
args:
MULE_HOME: "${MULE_HOME}"
MULE_VERSION: "${MULE_VERSION}"
environment:
MULE_HOME: "${MULE_HOME}"
MULE_VERSION: "${MULE_VERSION}"
ports:
- "5050-5059:5050-5059"
volumes:
- type: bind
source: ./containers/mule-ee/data/apps
target: /apps
jenkins:
container_name: jenkins
restart: always
build:
dockerfile: Dockerfile
context: ./containers/jenkins
volumes:
- type: bind
source: ./containers/jenkins/data
target: /var/jenkins_home
- /var/run/docker.sock:/var/run/docker.sock
environment:
JENKINS_USER: "${JENKINS_USER}"
JENKINS_PASS: "${JENKINS_PASS}"
ports:
- "8080:8080"
- "5000:5000"
- "50000:50000"
nexus:
container_name: nexus
image: sonatype/nexus3
restart: always
volumes:
- type: bind
source: ./containers/nexus/data
target: /sonatype-work
ports:
- "8081:8081"
networks:
- cicdnet
sonarqube:
image: sonarqube
container_name: sonarqube
restart: always
ports:
- "9000:9000"
networks:
- cicdnet
depends_on:
- sonardb
links:
- sonardb
environment:
SONARQUBE_JDBC_URL: "jdbc:postgresql://sonardb:5432/${POSTGRES_DB}"
SONARQUBE_JDBC_USERNAME: "${POSTGRES_USER}"
SONARQUBE_JDBC_PASSWORD: "${POSTGRES_PASSWORD}"
volumes:
- type: bind
source: ./containers/sonarqube/data
target: /var/lib/sonar
sonardb:
networks:
- cicdnet
image: postgres:9.6.1
container_name: sonarpostgresdb
restart: always
environment:
POSTGRES_USER: "${POSTGRES_USER}"
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
POSTGRES_DB: "${POSTGRES_DB}"
ports:
- "5432:5432"
volumes:
- type: bind
source: ./containers/postgresql/data
target: /var/lib/postgresql
networks:
cicdnet:
driver: bridge