Skip to content

Commit de03991

Browse files
committed
fix: use volume to share synonyms between api and elastic
1 parent 545368a commit de03991

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docker-compose.test.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ services:
2828
- NEWARA_ELASTICSEARCH_HOST=elastic
2929
- NEWARA_ELASTICSEARCH_PORT=9200
3030
entrypoint: /newara/www/.docker/run.sh
31+
volumes:
32+
- synonym:/newara/www/ara/db/elasticsearch
3133

3234
celery:
3335
image: newara
@@ -80,3 +82,8 @@ services:
8082
command: >
8183
bash -c "bin/elasticsearch-plugin list | grep -q analysis-nori || bin/elasticsearch-plugin install --batch analysis-nori
8284
&& /usr/local/bin/docker-entrypoint.sh"
85+
volumes:
86+
- synonym:/usr/share/elasticsearch/config/analysis
87+
88+
volumes:
89+
synonym:

0 commit comments

Comments
 (0)