-
Notifications
You must be signed in to change notification settings - Fork 3.1k
/
docker-compose.analytics.yml
90 lines (84 loc) · 1.99 KB
/
docker-compose.analytics.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
version: '3.3'
services:
elasticsearch:
container_name: cvat_elasticsearch
image: cvat_elasticsearch
networks:
- cvat
build:
context: ./components/analytics/elasticsearch
args:
ELK_VERSION: 6.8.23
volumes:
- cvat_events:/usr/share/elasticsearch/data
restart: always
kibana:
container_name: cvat_kibana
image: cvat_kibana
networks:
- cvat
build:
context: ./components/analytics/kibana
args:
ELK_VERSION: 6.8.23
depends_on: ['elasticsearch']
restart: always
cvat_kibana_setup:
container_name: cvat_kibana_setup
image: openvino/cvat_server
volumes: ['./components/analytics/kibana:/home/django/kibana:ro']
depends_on: ['cvat']
working_dir: '/home/django'
networks:
- cvat
entrypoint:
[
'bash',
'wait-for-it.sh',
'elasticsearch:9200',
'-t',
'0',
'--',
'/bin/bash',
'wait-for-it.sh',
'kibana:5601',
'-t',
'0',
'--',
'python3',
'kibana/setup.py',
'kibana/export.json',
]
environment:
no_proxy: elasticsearch,kibana,${no_proxy}
logstash:
container_name: cvat_logstash
image: cvat_logstash
networks:
- cvat
build:
context: ./components/analytics/logstash
args:
ELK_VERSION: 6.8.23
http_proxy: ${http_proxy}
https_proxy: ${https_proxy}
environment:
LOGSTASH_OUTPUT_HOST: elasticsearch:9200
LOGSTASH_OUTPUT_USER:
LOGSTASH_OUTPUT_PASS:
depends_on: ['elasticsearch']
restart: always
cvat:
environment:
DJANGO_LOG_SERVER_HOST: logstash
DJANGO_LOG_SERVER_PORT: 8080
CVAT_ANALYTICS: 1
traefik:
environment:
CVAT_HOST: ${CVAT_HOST:-localhost}
DJANGO_LOG_VIEWER_HOST: kibana
DJANGO_LOG_VIEWER_PORT: 5601
volumes:
- ./components/analytics/kibana_conf.yml:/etc/traefik/rules/kibana_conf.yml:ro
volumes:
cvat_events: