forked from jookies/jasmin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.grafana.yml
105 lines (98 loc) · 2.44 KB
/
docker-compose.grafana.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
version: "3.10"
services:
redis:
image: redis:alpine
restart: unless-stopped
healthcheck:
test: redis-cli ping | grep PONG
deploy:
resources:
limits:
cpus: '0.2'
memory: 128M
security_opt:
- no-new-privileges:true
rabbit-mq:
image: rabbitmq:3.10-management-alpine
restart: unless-stopped
healthcheck:
test: rabbitmq-diagnostics -q ping
deploy:
resources:
limits:
cpus: '0.5'
memory: 525M
security_opt:
- no-new-privileges:true
prometheus:
image: prom/prometheus:latest
restart: unless-stopped
ports:
- '9090:9090'
volumes:
- ./docker/prometheus/config/prometheus.yml:/etc/prometheus/prometheus.yml
- monitoring_data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--web.console.libraries=/etc/prometheus/console_libraries'
- '--web.console.templates=/etc/prometheus/consoles'
- '--web.enable-lifecycle'
depends_on:
- jasmin
deploy:
resources:
limits:
cpus: '0.2'
memory: 128M
security_opt:
- no-new-privileges:true
grafana:
image: grafana/grafana
restart: unless-stopped
ports:
- 3000:3000
environment:
GF_INSTALL_PLUGINS: "grafana-clock-panel,grafana-simple-json-datasource"
volumes:
- ./docker/grafana/provisioning/datasources:/etc/grafana/provisioning/datasources:ro
- ./docker/grafana/provisioning/dashboards:/etc/grafana/provisioning/dashboards:ro
- ./docker/grafana/dashboards:/opt/grafana-dashboards:ro
- monitoring_data:/var/lib/grafana
depends_on:
- prometheus
deploy:
resources:
limits:
cpus: '0.5'
memory: 256M
security_opt:
- no-new-privileges:true
jasmin:
build:
context: ./
dockerfile: ./docker/Dockerfile.dev
restart: unless-stopped
volumes:
- ./jasmin:/usr/jasmin/jasmin
ports:
- 2775:2775
- 8990:8990
- 1401:1401
depends_on:
redis:
condition: service_healthy
rabbit-mq:
condition: service_healthy
environment:
REDIS_CLIENT_HOST: redis
AMQP_BROKER_HOST: rabbit-mq
deploy:
resources:
limits:
cpus: '1'
memory: 256M
security_opt:
- no-new-privileges:true
volumes:
monitoring_data: { }