generated from thomasmendez/go-template-simple-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
46 lines (46 loc) · 1.23 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
services:
app:
container_name: app
build:
context: .
ports:
- '8081:8081'
volumes:
- ./:/app
alertmanager:
container_name: alertmanager
hostname: alertmanager
image: prom/alertmanager
volumes:
- ./prometheus/alertmanager.conf:/etc/alertmanager/alertmanager.conf
command:
- '--config.file=/etc/alertmanager/alertmanager.conf'
ports:
- 9093:9093
prometheus:
container_name: prometheus
hostname: prometheus
image: prom/prometheus
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
- ./prometheus/alert_rules.yml:/etc/prometheus/alert_rules.yml
- prometheus_data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
links:
- alertmanager:alertmanager
ports:
- 9090:9090
grafana:
container_name: grafana
hostname: grafana
image: grafana/grafana
volumes:
- ./grafana/grafana_datasources.yml:/etc/grafana/provisioning/datasources/all.yaml
- ./grafana/grafana_config.ini:/etc/grafana/config.ini
- grafana_data:/var/lib/grafana
ports:
- 3000:3000
volumes:
prometheus_data: {}
grafana_data: {}