-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose-infra.yml
78 lines (73 loc) · 2.03 KB
/
docker-compose-infra.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
version: "3.7"
services:
grafana:
image: grafana/grafana:latest
container_name: grafana
restart: unless-stopped
ports:
- "3000:3000"
volumes:
- /config/grafana:/var/lib/grafana
user: '1001'
loki:
image: grafana/loki:latest
container_name: loki
restart: unless-stopped
ports:
- "3100:3100"
user: '1001'
command: -config.file=/etc/loki/loki-config.yaml
volumes:
- /config/loki/loki-config.yaml:/etc/loki/loki-config.yaml
- /config/loki/data:/loki
- /config/loki/wal:/wal
redis:
image: redis:7.0.11
container_name: redis
user: '1001'
ports:
- '6379:6379'
volumes:
- /config/redis:/data
command: redis-server --save 550 1 --maxmemory 40gb
influxdb:
image: influxdb:latest
container_name: influxdb
restart: unless-stopped
user: '1001'
ports:
- '8086:8086'
volumes:
- /config/influxdb/data:/var/lib/influxdb2
- /config/influxdb/config.yml:/etc/influxdb2/config.yml
telegraf:
image: telegraf-collectd:1.1
container_name: telegraf
user: '1001'
environment:
- HOST_ETC=/hostfs/etc
- HOST_PROC=/hostfs/proc
- HOST_SYS=/hostfs/sys
- HOST_VAR=/hostfs/var
- HOST_RUN=/hostfs/run
- HOST_MOUNT_PREFIX=/hostfs
ports:
- '8125:8125'
- '8092:8092'
- '8094:8094'
- '25826:25826/udp'
- '2003:2003'
volumes:
- /config/telegraf/telegraf.conf:/etc/telegraf/telegraf.conf
- /config/telegraf/types.db:/data/types.db
- /var/run/docker.sock:/var/run/docker.sock
- /:/hostfs:ro
promtail:
image: grafana/promtail:latest
container_name: promtail
restart: unless-stopped
user: '1001'
volumes:
- /config/promtail/promtail.yaml:/etc/promtail/promtail.yaml
- /config/swag/log/nginx:/logs
command: -config.file=/etc/promtail/promtail.yaml