-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathdocker-compose.gotify.yml
107 lines (98 loc) · 2.14 KB
/
docker-compose.gotify.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.4"
services:
alertmanager:
image: prom/alertmanager
container_name: alertmanager
command:
- '--config.file=/etc/alertmanager/config.yml'
- '--storage.path=/alertmanager'
volumes:
- ./config/alertmanager-gotify.yml:/etc/alertmanager/config.yml
ports:
- 9093:9093
networks:
- public
alertmanager-to-gotify:
image: a1kmm/alertmanager-to-gotify
container_name: alertmanager-to-gotify
environment:
- GOTIFY_MESSAGE_ENDPOINT=http://gotify/message
- GOTIFY_TOKEN=xxxxxxxxxxxxxxxx
ports:
- 8435:8435
depends_on:
- gotify
networks:
- public
gotify:
image: gotify/server
container_name: gotify
environment:
- GOTIFY_DEFAULTUSER_PASS=password
ports:
- 18080:80
volumes:
- gotify:/app/data
networks:
- public
loki:
image: grafana/loki:2.0.0-amd64
container_name: loki
volumes:
- ./config/loki.yml:/etc/config/loki.yml
- ./rules/demo/rules.yml:/etc/loki/rules/fake/rules.yml
entrypoint:
- /usr/bin/loki
- -config.file=/etc/config/loki.yml
ports:
- "3100:3100"
depends_on:
- alertmanager
networks:
- public
grafana:
image: grafana/grafana:7.2.2
container_name: grafana
volumes:
- ./config/datasource.yml:/etc/grafana/provisioning/datasources/datasource.yml
- grafana:/var/lib/grafana
ports:
- "3000:3000"
depends_on:
- loki
networks:
- public
webservice:
image: nginx
container_name: webservice
ports:
- 8000:80
logging:
driver: loki
options:
loki-url: http://localhost:3100/loki/api/v1/push
loki-external-labels: job=dockerlogs,environment=development
depends_on:
- loki
networks:
- public
http-client:
image: alpine
container_name: http-client
entrypoint: |
sh -c 'sh -s << EOF
apk --no-cache add curl
while true
do
curl http://webservice
done
EOF'
depends_on:
- webservice
networks:
- public
networks:
public: {}
volumes:
grafana: {}
gotify: {}