-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
/
Copy pathdocker-compose.yaml
49 lines (42 loc) · 1.04 KB
/
docker-compose.yaml
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
47
48
49
---
version: "3"
services:
nginx:
image: nginx:1.22.1
ports:
- 8080:8080
- 8181:80
volumes:
- ./nginx/status.conf:/etc/nginx/conf.d/status.conf
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/myapp.conf:/etc/nginx/conf.d/default.conf
- ./test-access.log:/var/log/nginx/access.log
myapp:
build: ./myapp
ports:
- 8282:8282
prometheus-nginx-exporter:
build: ./prometheus-nginx-exporter
command: --target.host=nginx
ports:
- 9150:9150
volumes:
- ./test-access.log:/var/log/nginx/access.log
prometheus:
image: prom/prometheus:v2.41.0
ports:
- 9090:9090
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
grafana:
image: grafana/grafana:9.3.2
ports:
- 3000:3000
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=devops123
volumes:
- ./grafana/datasources.yaml:/etc/grafana/provisioning/datasources/datasources.yaml
- grafana:/var/lib/grafana
volumes:
grafana: