-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (32 loc) · 910 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
34 lines (32 loc) · 910 Bytes
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
services:
nginx:
image: skyefuzz/nginx-rtmp:latest
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
ports:
- 1935:1935
nginx_exporter:
build: .
links:
- nginx
command: ./nginx-rtmp-exporter -p 9114 --host 0.0.0.0 --scrape-url http://example.com/my_rtmp_stats
prometheus:
image: prom/prometheus
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml:ro
ports:
- 9090:9090
links:
- nginx_exporter
grafana:
image: grafana/grafana:latest
container_name: grafana
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=admin
- GF_USERS_ALLOW_SIGN_UP=false
restart: unless-stopped
ports:
- 3000:3000
links:
- prometheus