mirror of
https://github.com/veops/cmdb.git
synced 2025-08-07 06:09:48 +08:00
elastic search [done]
This commit is contained in:
@@ -35,4 +35,10 @@ RUN pip install --no-cache-dir -r docs/requirements.txt \
|
||||
&& sed -i "s#{user}:{password}@127.0.0.1:3306/{db}#cmdb:123456@mysql:3306/cmdb#g" api/settings.py \
|
||||
&& sed -i "s/127.0.0.1/redis/g" api/settings.py
|
||||
|
||||
CMD ["bash", "-c", "flask run"]
|
||||
CMD ["bash", "-c", "flask run"]
|
||||
|
||||
|
||||
# ================================= Search ================================
|
||||
FROM docker.elastic.co/elasticsearch/elasticsearch:7.4.2 AS cmdb-search
|
||||
|
||||
RUN yes | ./bin/elasticsearch-plugin install https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v7.4.2/elasticsearch-analysis-ik-7.4.2.zip
|
||||
|
Reference in New Issue
Block a user