-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
70 lines (65 loc) · 1.53 KB
/
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
version: '3.5'
services:
nginx:
image: nginx:latest
ports:
# Replace 8443 and 8080 with your desired ports here
- 8443:443
- 8080:80
volumes:
- type: bind
source: ./config/nginx/nginx.conf
target: /etc/nginx/nginx.conf
read_only: true
- type: bind
source: ./config/nginx/monitoring-dashboard.conf
target: /etc/nginx/monitoring-dashboard.conf
read_only: true
- type: bind
source: ./config/nginx/cert
target: /etc/nginx/cert
networks:
- ncp-monitoring
prometheus:
image: prom/prometheus
volumes:
- prometheus:/data
- type: bind
source: ./config/prometheus
target: /etc/prometheus
read_only: true
networks:
- ncp-monitoring
depends_on:
- ncp-nextcloud-exporter
# Uncomment to expose prometheus directly
# ports:
# - "localhost:9090:9090"
ncp-nextcloud-exporter:
image: xperimental/nextcloud-exporter
env_file:
- .env
environment:
- NEXTCLOUD_LISTEN_ADDRESS=:9025
- NEXTCLOUD_TIMEOUT=5s
networks:
- ncp-monitoring
grafana:
image: grafana/grafana:latest
hostname: grafana
volumes:
- grafana:/var/lib/grafana
- type: bind
source: ./config/grafana
target: /etc/grafana
# Uncomment to expose grafana directly
# ports:
# - localhost:3000:3000
networks:
- ncp-monitoring
networks:
ncp-monitoring:
name: ncp-monitoring
volumes:
prometheus:
grafana: