-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
46 lines (46 loc) · 995 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
services:
web:
container_name: my-app
build: .
networks:
- promNet
ports:
- 8080:80
volumes:
- ./log:/app/log
- /etc/localtime:/etc/localtime:ro
prometheus:
container_name: prometheus
image: prom/prometheus
networks:
- promNet
ports:
- 9090:9090
volumes:
- ./config:/etc/prometheus
command:
- '--web.external-url=http://localhost:9090'
- '--config.file=/etc/prometheus/prometheus.yml'
alertmanager:
container_name: alertmanager
image: prom/alertmanager
networks:
- promNet
ports:
- 9093:9093
volumes:
- ./config/alertmanager:/etc/alertmanager
command:
- '--web.external-url=http://localhost:9093'
- '--config.file=/etc/alertmanager/alertmanager.yml'
grafana:
container_name: grafana
image: grafana/grafana-oss
networks:
- promNet
ports:
- 3000:3000
networks:
promNet:
driver: bridge
name: promNet