-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathdocker-compose.master.yml
65 lines (65 loc) · 2.15 KB
/
docker-compose.master.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
#
#
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: MIT-0
#
#
version: '3.8'
services:
pushgateway:
container_name: pushgateway
network_mode: host
pid: host
restart: unless-stopped
image: prom/pushgateway
prometheus:
container_name: prometheus
network_mode: host
pid: host
restart: unless-stopped
volumes:
- '/home/$cfn_cluster_user/__MONITORING_DIR__/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml'
- 'prometheus-data:/prometheus'
image: prom/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--web.console.libraries=/usr/share/prometheus/console_libraries'
- '--web.console.templates=/usr/share/prometheus/consoles'
- '--web.external-url=/prometheus/'
- '--web.route-prefix=/'
grafana:
container_name: grafana
network_mode: host
pid: host
restart: unless-stopped
environment:
- 'GF_SECURITY_ADMIN_PASSWORD=Grafana4PC!'
- 'GF_SERVER_ROOT_URL=http://%(domain)s/grafana/'
volumes:
- '/home/$cfn_cluster_user/__MONITORING_DIR__/grafana:/etc/grafana/provisioning'
- 'grafana-data:/var/lib/grafana'
image: grafana/grafana
prometheus-node-exporter:
container_name: node-exporter
network_mode: host
pid: host
restart: unless-stopped
volumes:
- '/:/host:ro,rslave'
image: quay.io/prometheus/node-exporter
command:
- '--path.rootfs=/host'
nginx:
container_name: nginx
network_mode: host
pid: host
restart: unless-stopped
volumes:
- '/home/$cfn_cluster_user/__MONITORING_DIR__/nginx/conf.d:/etc/nginx/conf.d/'
- '/home/$cfn_cluster_user/__MONITORING_DIR__/nginx/ssl:/etc/ssl/'
- '/home/$cfn_cluster_user/__MONITORING_DIR__/www:/usr/share/nginx/html'
image: nginx
volumes:
prometheus-data:
grafana-data: