diff --git a/src/main/docker/gitsearch.yml b/src/main/docker/gitsearch.yml index 4fd5e1d6e26ff5ddec4e2702413ee56e8a56d891..c3e29292e21ecc640aca2ea1a08049c862c812e0 100644 --- a/src/main/docker/gitsearch.yml +++ b/src/main/docker/gitsearch.yml @@ -44,6 +44,27 @@ services: restart: always networks: - backend + sharing_elasticsearch: + image: docker.elastic.co/elasticsearch/elasticsearch:7.15.2 + ports: + - 127.0.0.1:9200:9200 + - 127.0.0.1:9300:9300 + environment: + - 'xpack.security.enabled=false' + - 'discovery.type=single-node' + - 'bootstrap.memory_lock=true' + - 'ES_JAVA_OPTS=-Xms512m -Xmx512m' + ulimits: + memlock: + soft: -1 + hard: -1 + nofile: + soft: 65536 + hard: 65536 + cap_add: + - IPC_LOCK + networks: + - backend networks: frontend: name: sharing_frontend