Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add elastic search to compose #201

Merged
merged 1 commit into from
Jan 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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: