Newer
Older
# This configuration is intended for development purpose, it's **your** responsibility to harden it for production
sharing_elasticsearch:
image: 'docker.elastic.co/elasticsearch/elasticsearch:7.17.6'
container_name: sharing_elasticsearch
# - ~/volumes/jhipster/gitsearch/elasticsearch/:/usr/share/elasticsearch/data/
# If you want to expose these ports outside your dev PC,
# remove the "127.0.0.1:" prefix
- '9200:9200' # add this for your local testing setup
- '9300:9300' # add this for your local testing setup
- node.name=es01
- cluster.name=sharing_elasticsearch
- discovery.type=single-node
- xpack.security.enabled=false
volumes:
- '/mnt/qt-codeability-austria/sharing/es/data:/usr/share/elasticsearch/data' # change this path for production
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
networks:
backend:
ipv4_address: 172.22.2.24
# kibana:
# depends_on:
# - sharing_elasticsearch
# image: docker.elastic.co/kibana/kibana:7.15.2
# volumes:
# - kibanadata:/usr/share/kibana/data
# ports:
# - 5601:5601
# environment:
# - SERVERNAME=kibana
# - ELASTICSEARCH_HOSTS=http://172.22.2.24:9200
# healthcheck:
# test: ['CMD-SHELL', "curl -s -I http://172.22.2.23:5601 | grep -q 'HTTP/1.1 302 Found'"]
# interval: 10s
# timeout: 10s
# retries: 120
# networks:
# backend:
# ipv4_address: 172.22.2.23
networks:
frontend:
name: sharing_frontend
driver: bridge
ipam:
driver: default
config:
- subnet: 172.22.1.0/24
backend:
name: sharing_backend
driver: bridge
internal: true
ipam:
driver: default
config:
- subnet: 172.22.2.0/24
volumes:
kibanadata:
driver: local