forked from waltermoreira/abaco
-
Notifications
You must be signed in to change notification settings - Fork 14
/
docker-compose-prom.yml
107 lines (102 loc) · 2.76 KB
/
docker-compose-prom.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
version: "3.3"
services:
prometheus:
# build: ./prometheus
image: abaco/prom$:$TAG
# environment:
# no_proxy: "reg"
configs:
- source: prometheus_config
target: /etc/prometheus/prometheus.yml
- source: prometheus_rules
target: /etc/prometheus/alert.rules.yml
command:
- '--config.file=/etc/prometheus/prometheus.yml'
# - '-storage.local.path=/prometheus'
ports:
- 9090:9090
# networks:
# - testing
deploy:
placement:
constraints:
- 'node.role == manager'
- 'node.platform.os == linux'
resources:
limits:
memory: 500M
reservations:
memory: 200M
grafana:
image: grafana/grafana
user: "104"
depends_on:
- prometheus
ports:
- 3000:3000
volumes:
- grafana_data:/var/lib/grafana
- ./prometheus/grafana/provisioning/:/etc/grafana/provisioning/
env_file:
- ./prometheus/grafana/config.monitoring
networks:
- back-tier
- front-tier
restart: always
metrics:
image: abaco/core$:$TAG
volumes:
- ./local-dev.conf:/etc/service.conf
- ./abaco.log:/var/log/service.log
ports:
- "5004:5000"
environment:
server: dev
api: metrics
mongo_password:
TAS_ROLE_ACCT:
TAS_ROLE_PASS:
volumes:
grafana_data: {}
networks:
front-tier:
back-tier:
# alertmanager:
# image: abaco/alert$:$TAG
## environment:
## no_proxy: "gateway"
# command:
# - '-config.file=/alertmanager.yml'
# networks:
# - testing
# # Uncomment the following port mapping if you wish to expose the Prometheus
# # Alertmanager UI.
# ports:
# - 9093:9093
# deploy:
# resources:
# limits:
# memory: 50M
# reservations:
# memory: 20M
# placement:
# constraints:
# - 'node.role == manager'
# - 'node.platform.os == linux'
# configs:
# - source: alertmanager_config
# target: /alertmanager.yml
#
#
#configs:
# prometheus_config:
# file: ./prometheus/prometheus.yml
# prometheus_rules:
# file: ./prometheus/alert.rules.yml
# alertmanager_config:
# file: ./prometheus/alertmanager.yml
#
#networks:
# testing:
# driver: overlay
# attachable: true