-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
109 lines (101 loc) · 2.63 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
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
108
109
version: '3.7'
x-healthcheck:
&default-healthcheck
interval: "5s"
timeout: "1s"
retries: 3
start_period: "20s"
x-logging:
&default-logging
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
services:
fluentd:
# image: sindan/fluentd:1.3.0
image: sindan-fluentd:v1.6-1
hostname: sindan-fluentd
restart: always
depends_on:
- influxdb
ports:
- "18080:8080"
- "18888:8888"
healthcheck:
<<: *default-healthcheck
test: wget --spider http://127.0.0.1:8080/ || exit 1
logging: *default-logging
volumes:
- ./fluent.conf:/fluentd/etc/fluent.conf
- fluentd-data:/fluentd/log
labels:
com.sindan-net.description: "Receive logs from sindan-clients and forward them to InfluxDB proxy via HTTP"
influxdb:
image: quay.io/influxdb/influxdb:2.0.0-alpha
hostname: sindan-influxdb
restart: always
expose:
- '8083'
- '8086'
- '8090'
ports:
- '9999:9999'
# healthcheck:
# <<: *default-healthcheck
# test: curl -I -f http://127.0.0.1:9999 || exit 1
logging: *default-logging
command: --reporting-disabled
# command: influxd run --bolt-path /var/lib/inflxudb2/influxd.bolt --engine-path /var/lib/influxdb2/engine --store bolt --reporting-disabled
# volumes:
# - 'influxdb-data:/var/lib/influxdb2'
volumes:
- 'influxdb-data:/root/.influxdbv2'
labels:
com.sindan-net.description: "Store diagnosis logs for sindan-notification"
proxy:
image: mi2428/sindan-notification:latest
build:
context: .
hostname: sindan-influxdb-proxy
restart: always
expose:
- "8000"
secrets:
- config
environment:
CONFIG_FILE: "/run/secrets/config"
healthcheck:
<<: *default-healthcheck
test: curl -f http://127.0.0.1:8000 || exit 1
logging: *default-logging
command: pipenv run proxy
volumes:
- ./src:/app
labels:
com.sindan-net.description: "Receive raw logs via HTTP and forward processed logs to InfluxDB"
notifier:
image: mi2428/sindan-notification:latest
build:
context: .
hostname: sindan-notification
restart: always
secrets:
- config
environment:
CONFIG_FILE: "/run/secrets/config"
# healthcheck:
# <<: *default-healthcheck
# test: curl -f http://127.0.0.1:8000 || exit 1
logging: *default-logging
volumes:
- ./src:/app
labels:
com.sindan-net.description: "Watch diagnosis results and notify when something happens."
secrets:
config:
file: config.yml
volumes:
fluentd-data:
influxdb-data:
influxdb-config: