-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (39 loc) · 945 Bytes
/
docker-compose.yml
File metadata and controls
43 lines (39 loc) · 945 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
35
36
37
38
39
40
41
42
43
services:
nginx:
image: nginx:1.29.1-alpine-slim
ports:
- "80:80"
volumes:
- ./config/nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- syslog-nginx
prometheus:
image: prom/prometheus:latest
ports:
- "9090:9090"
volumes:
- ./config/prometheus.yml:/etc/prometheus/prometheus.yml:ro
- prometheus-data:/prometheus
grafana:
image: grafana/grafana:latest
ports:
- "3000:3000"
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=admin
depends_on:
- prometheus
volumes:
- grafana-data:/var/lib/grafana
syslog-nginx:
image: daffaputranarendra/sysy:v0.0.3
ports:
- "2112:2112"
container_name: syslog-nginx
environment:
- CONF_NGINX_TARGET_URL=http://nginx/nginx_status
- CONF_SYSLOG_ADDR=:5140
- CONF_LOG_ENABLE=true
volumes:
prometheus-data: {}
grafana-data: {}