Skip to content

Commit

Permalink
Merge pull request #201 from atlanticwave-sdx/167.elasticsearch-in-co…
Browse files Browse the repository at this point in the history
…mpose

Add elastic search to compose
  • Loading branch information
sajith authored Jan 22, 2024
2 parents 9829074 + 979109a commit 6dc80e9
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,34 @@ services:
- DB_NAME=${DB_NAME}
- DB_CONFIG_TABLE_NAME=${DB_CONFIG_TABLE_NAME}

# This is a single node elasticsearch with authentication and TLS
# disabled, for testing/development. See
# https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html
# for a more elaborate setup.
elasticsearch-service:
image: elasticsearch:8.11.3
ports:
- ${ES_PORT}:${ES_PORT}
environment:
- xpack.security.enabled=false
- discovery.type=single-node
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
cap_add:
- IPC_LOCK
volumes:
- elasticsearch-data:/usr/share/elasticsearch/data
mem_limit: 1GB

bapm-server-service:
image: bapm-server
depends_on:
- elasticsearch
tty: true
build: ./bapm_server
environment:
Expand All @@ -59,3 +85,4 @@ services:

volumes:
mongodb:
elasticsearch-data:

0 comments on commit 6dc80e9

Please sign in to comment.