Skip to content

Commit

Permalink
chore(docker): add es8 for docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
akiva10b committed Dec 10, 2024
1 parent 897b380 commit 74915f9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dev-docker/local_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
# Leave as {} to prevent language pinning, in which case one domain can serve either Hebrew or English
DOMAIN_LANGUAGES = {
}
SEARCH_URL = "http://localhost:9200"
SEARCH_URL = "es8"

################ These are things you can change! ###########################################################################
SILENCED_SYSTEM_CHECKS = ['captcha.recaptcha_test_key_error']
Expand Down
9 changes: 9 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,22 @@ services:
command: sh dev-docker/node-entrypoint.sh
ports:
- "3000:3000"

es8:
image: "elasticsearch:8.8.2"
ports:
- "9200:9200"
- "9300:9300"
environment:
- discovery.type=single-node
- xpack.security.http.ssl.enabled=false
- xpack.security.enabled=false
- xpack.security.enrollment.enabled=false
command: >
sh -c "bin/elasticsearch-plugin install --batch analysis-icu &&
bin/elasticsearch-plugin install --batch https://github.com/Sefaria/Sefaria-ElasticSearch/releases/download/v1.1.6/sefaria-naive-lemmatizer-v1.1.6.zip &&
bin/elasticsearch-plugin install --batch https://github.com/Sefaria/Sefaria-ElasticSearch/releases/download/v1.1.6/sefaria-naive-lemmatizer-less-prefixes-v1.1.6.zip &&
bin/elasticsearch"
postgres:
image: "postgres:latest"
Expand Down

0 comments on commit 74915f9

Please sign in to comment.