-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
69 lines (63 loc) · 1.42 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
services:
redis:
image: redis:latest
ports:
- "6379:6379"
volumes:
- redis_data:/data
command: redis-server --appendonly yes
profiles:
- redis
# http://localhost:8123/play <- web ui
clickhouse:
image: clickhouse/clickhouse-server:latest
ports:
- "8123:8123"
- "9440:9000"
volumes:
- clickhouse_data:/var/lib/clickhouse
environment:
CLICKHOUSE_DB: default
CLICKHOUSE_USER: admin
CLICKHOUSE_PASSWORD: password
ulimits:
nofile:
soft: 262144
hard: 262144
prometheus:
image: prom/prometheus:latest
ports:
- "9090:9090"
command:
- '--config.file=/etc/prometheus/prometheus.yml'
configs:
- source: prometheus_config
target: /etc/prometheus/prometheus.yml
extra_hosts:
- "host.docker.internal:host-gateway"
profiles:
- monitoring
grafana:
image: grafana/grafana:latest
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=admin
ports:
- "4000:3000"
volumes:
- grafana_data:/var/lib/grafana
profiles:
- monitoring
volumes:
redis_data:
clickhouse_data:
grafana_data:
configs:
prometheus_config:
content: |
global:
scrape_interval: 15s
scrape_configs:
- job_name: 'local_service'
static_configs:
- targets: ['host.docker.internal:2112']