-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
44 lines (39 loc) · 1.1 KB
/
docker-compose.yaml
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
version: '3'
services:
prometheus:
image: prom/prometheus:${PROMETHEUS_VERSION}
container_name: prometheus-container
ports:
- 9090:9090
volumes:
- ./prometheus/config/:/etc/prometheus/
- prometheus_data:/var/lib/prometheus
networks:
- default
grafana:
image: grafana/grafana:${GRAFANA_VERSION}
container_name: grafana-container
depends_on:
- prometheus
ports:
- 3000:3000
volumes:
- grafana_data:/var/lib/grafana
- ./grafana/config/grafana.ini:/etc/grafana/grafana.ini
- ./grafana/datasources/:/etc/grafana/provisioning/datasources/
- ./grafana/dashboards/config/:/etc/grafana/provisioning/dashboards/
# Necessario configurar o proxy no grafana dentro do docker
# environment:
# - GF_SECURITY_ADMIN_PASSWORD=admin
# - "GF_INSTALL_PLUGINS=grafana-clock-panel 1.0.1,grafana-simple-json-datasource 1.3.5"
env_file:
- grafana/config/grafana.config
networks:
- default
networks:
default:
external:
name: algamoney-network
volumes:
prometheus_data:
grafana_data: