This repository has been archived by the owner on Feb 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
80 lines (80 loc) · 2.97 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
version: '3.6'
services:
elasticsearch:
build:
context: ./elasticsearch
args:
# the vars here are picked up from the .env file
- es_image=${ES_IMAGE}
- es_version=${ES_VERSION}
image: akshara/${ES_IMAGE}:${ES_VERSION}
container_name: akshara_elasticsearch
environment:
# also set the vm.max_map_count kernel setting for production use. See:
# https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#docker-cli-run-prod-mode
- "ES_JAVA_OPTS=-Xms${ES_JAVA_HEAP_SIZE} -Xmx${ES_JAVA_HEAP_SIZE}"
# elasticsearch-specific xpack features (to be used when xpack is installed)
# disable these when using the elasticsearch-oss image
- xpack.license.self_generated.type=basic
- xpack.monitoring.enabled=true
# default is 7 days. Enable if we run short of disk space
#- xpack.monitoring.history.duration=3d
# paid features
- xpack.ml.enabled=false
- xpack.security.enabled=false
- xpack.watcher.enabled=false
ulimits:
# disabling swapping for performance and node stability
memlock:
soft: -1
hard: -1
volumes:
# share the config in the repo with the container
- ./elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
- ./elasticsearch/config/stopwords:/usr/share/elasticsearch/config/stopwords
# using local docker volume for es data
# gets stored in /var/lib/docker/volumes by default, and can specify a
# custom path here, but need to configure the dir perms for container use
- esdata:/usr/share/elasticsearch/data
ports:
- 9200:9200
networks:
- esnet
kibana:
image: docker.elastic.co/kibana/${KIBANA_IMAGE}:${KIBANA_VERSION}
container_name: akshara_kibana
environment:
# limit kibana memory usage (default is 1G)
- "NODE_OPTIONS=--max-old-space-size=${KIBANA_NODE_MEM_LIMIT_MB}"
# for valid options here, see:
# https://github.com/elastic/kibana-docker/blob/master/build/kibana/bin/kibana-docker
# if true, only error messages are shown
- LOGGING_QUIET=${KIBANA_LOGGING_QUIET}
# which page to launch by default
- KIBANA_DEFAULTAPPID=discover
# kibana-specific xpack features (to be used when xpack is installed)
- XPACK_LICENSE_SELF_GENERATED_TYPE=basic
# overriding the xpack defaults currently triggers optimizing and caching of kibana bundles,
# which takes forever. Disabling these and going with the defaults here.
#- XPACK_MONITORING_ENABLED=true
#- XPACK_REPORTING_ENABLED=true
# paid features
#- XPACK_GRAPH_ENABLED=false
#- XPACK_ML_ENABLED=false
#- XPACK_SECURITY_ENABLED=false
ports:
- 5601:5601
networks:
- esnet
frontend:
build: ./parijat-frontend
container_name: parijat_frontend
ports:
- 8080:8080
networks:
- esnet
volumes:
esdata:
driver: local
networks:
esnet: