-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
49 lines (43 loc) · 884 Bytes
/
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
version: '3.8'
services:
prometheus:
image: prom/prometheus:main
container_name: prometheus
ports:
- 9090:9090
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
depends_on:
- node-exporter
- petshop
networks:
- monitoring
node-exporter:
image: prom/node-exporter:master
container_name: node-exporter
ports:
- 9100:9100
networks:
- monitoring
petshop:
image: harbor.sflabs.com.br/processo/petshop:latest
container_name: petshop
ports:
- 3000:3000
networks:
- monitoring
grafana:
image: grafana/grafana:main
container_name: grafana
ports:
- 80:3000
volumes:
- ./grafana/grafana_data:/var/lib/grafana
networks:
- monitoring
volumes:
grafana_data:
prometheus:
networks:
monitoring:
driver: bridge