Skip to content

Commit 5706697

Browse files
authored
Create docker-compose.yml
1 parent fced680 commit 5706697

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

solution/prom/docker-compose.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
version: '3'
2+
services:
3+
prometheus:
4+
image: prom/prometheus:latest
5+
volumes:
6+
- ./prometheus.yml:/etc/prometheus/prometheus.yml
7+
ports:
8+
- 9090:9090
9+
command:
10+
- '--config.file=/etc/prometheus/prometheus.yml'
11+
- '--storage.tsdb.path=/prometheus'
12+
networks:
13+
- monitoring
14+
15+
grafana:
16+
image: grafana/grafana
17+
ports:
18+
- 3000:3000
19+
environment:
20+
- GF_SECURITY_ADMIN_USER=admin
21+
- GF_SECURITY_ADMIN_PASSWORD=admin
22+
networks:
23+
- monitoring
24+
depends_on:
25+
- prometheus
26+
27+
networks:
28+
monitoring:
29+
driver: bridge

0 commit comments

Comments
 (0)