-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.report-elk.yml
77 lines (73 loc) · 2.5 KB
/
docker-compose.report-elk.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
version: '3.9'
services:
report-elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:${ELK_VERSION}
volumes:
- type: bind
source: ./infra/docker/report-elk/elasticsearch/config/elasticsearch.yml
target: /usr/share/elasticsearch/config/elasticsearch.yml
read_only: true
- type: volume
source: report_elasticsearch
target: /usr/share/elasticsearch/data
environment:
ES_JAVA_OPTS: "-Xmx256m -Xms256m"
# Use single node discovery in order to disable production mode and avoid bootstrap checks.
# see: https://www.elastic.co/guide/en/elasticsearch/reference/current/bootstrap-checks.html
discovery.type: single-node
networks:
- internal
report-logstash:
image: ${REGISTRY_NAMESPACE}report-logstash:$DOCKER_TAG
build:
context: infra/docker/report-elk/logstash/
args:
ELK_VERSION: $ELK_VERSION
volumes:
- ./infra/docker/report-elk/logstash/files:/usr/share/logstash/files
- type: bind
source: ./infra/docker/report-elk/logstash/config/logstash.yml
target: /usr/share/logstash/config/logstash.yml
read_only: true
- type: bind
source: ./infra/docker/report-elk/logstash/pipeline/logstash.conf
target: /usr/share/logstash/pipeline/logstash.conf
read_only: true
ports:
- "5044:5044"
- "5000:5000/tcp"
- "5000:5000/udp"
- "9600:9600"
environment:
- ELASTICSEARCH_HOST=report-elasticsearch:9200
- LS_JAVA_OPTS=-Xmx256m -Xms256m
- POSTGRES_HOST
- POSTGRES_PORT
- POSTGRES_USER
- POSTGRES_PASSWORD
- POSTGRES_DATABASE=${REPORT_DB_NAME}
networks:
- internal
depends_on:
- report-elasticsearch
report-kibana:
image: docker.elastic.co/kibana/kibana:${ELK_VERSION}
volumes:
- type: bind
source: ./infra/docker/report-elk/kibana/config/kibana.yml
target: /usr/share/kibana/config/kibana.yml
read_only: true
environment:
- ELASTICSEARCH_HOST=report-elasticsearch:9200
networks:
- internal
depends_on:
- report-elasticsearch
labels:
- "traefik.enable=true"
- "traefik.http.routers.report-kibana.rule=Host(`report-kibana.${PHRASEA_DOMAIN}`)"
- "traefik.http.services.report-kibana.loadbalancer.server.port=5601"
- "traefik.http.routers.report-kibana.middlewares=admin-secured@docker"
- "traefik.project_name=${COMPOSE_PROJECT_NAME}"
volumes:
report_elasticsearch: