-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
54 lines (50 loc) · 1.09 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
services:
jenkins:
image: jenkins/jenkins:lts-jdk17
container_name: jenkins
privileged: true
user: root
ports:
- 8080:8080
- 50000:50000
networks:
- jenkins_monitoring
restart: unless-stopped
volumes:
- jenkins_home:/var/jenkins_home
prometheus:
image: prom/prometheus:v2.47.2
container_name: prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
ports:
- 9090:9090
networks:
- jenkins_monitoring
depends_on:
- jenkins
restart: unless-stopped
volumes:
- ./prometheus:/etc/prometheus
- prom_data:/prometheus
grafana:
image: grafana/grafana:10.2.0
container_name: grafana
ports:
- 3000:3000
networks:
- jenkins_monitoring
depends_on:
- jenkins
- prometheus
restart: unless-stopped
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=grafana
volumes:
- ./grafana:/etc/grafana/provisioning/datasources
volumes:
jenkins_home:
prom_data:
networks:
jenkins_monitoring: