forked from skkuding/codedang-monitor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
74 lines (65 loc) · 1.54 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
70
71
72
73
74
version: "3.8"
networks:
loki:
services:
caddy:
profiles: ['caddy']
image: caddy:2.7.6-alpine
container_name: caddy
restart: always
ports:
- "80:80"
- "443:443"
network_mode: host
loki-test:
profiles: ['log']
image: grafana/loki:2.9.0
container_name: loki-test
ports:
- "3199:3100"
volumes:
- '$PWD/grafana/loki-config-test.yml:/etc/loki/loki-config.yml'
command: -config.file=/etc/loki/loki-config.yml
networks:
- loki
loki-stage:
profiles: ['log']
image: grafana/loki:2.9.0
container_name: loki-stage
ports:
- "3101:3100"
volumes:
- '$PWD/grafana/loki-config-stage.yml:/etc/loki/loki-config.yml'
command: -config.file=/etc/loki/loki-config.yml
networks:
- loki
loki-aws:
profiles: ['log']
image: grafana/loki:2.9.0
container_name: loki-aws
ports:
- "3100:3100"
volumes:
- '$PWD/grafana/loki-config-aws.yml:/etc/loki/loki-config.yml'
command: -config.file=/etc/loki/loki-config.yml
networks:
- loki
grafana:
profiles: ['log']
image: grafana/grafana:latest
env_file:
- .env
container_name: grafana
restart: unless-stopped
# environment:
# - TERM=linux
# - GF_INSTALL_PLUGINS=grafana-clock-panel,grafana-polystat-panel
ports:
- '3000:3000'
volumes:
- 'grafana_storage:/var/lib/grafana'
- '$PWD/grafana/grafana.ini:/etc/grafana/grafana.ini'
networks:
- loki
volumes:
grafana_storage: {}