Skip to content

change docker file to support elastic_search#8

Open
houyuan2 wants to merge 7 commits into
masterfrom
elastic_search_dev
Open

change docker file to support elastic_search#8
houyuan2 wants to merge 7 commits into
masterfrom
elastic_search_dev

Conversation

@houyuan2

@houyuan2 houyuan2 commented Oct 5, 2020

Copy link
Copy Markdown
Collaborator

Running this docker file should build elastic search server and kibana frontend

@houyuan2 houyuan2 requested review from angrave and robkooper October 5, 2020 19:12
@houyuan2 houyuan2 self-assigned this Oct 5, 2020

@angrave angrave left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some things which seem to be missing here-

  1. Do we need to set the local directory, like the other containers, for persistent data
  2. Networking- This should be exposed to webapi and taskengine but presumably not the outside world
  3. Dependencies -we need to update the start up order/dependency?
  4. Logging options
    @robkooper Rob can you help address these?

Comment thread docker-compose.yml Outdated
container_name: elasticsearch
image: docker.elastic.co/elasticsearch/elasticsearch:7.6.2
ports:
- 9200:9200

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in general we don't want to expose ports, for local development this can be done using docker-compose.override.yaml.

Comment thread docker-compose.yml
environment:
- xpack.monitoring.enabled=true
- xpack.watcher.enabled=false
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this enough memory? How big will the index be, I think we should set Xmx to 2GB

Comment thread docker-compose.yml Outdated
networks:
- elastic

kibana:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is kibana needed? is there a way to prepopulate it with a username/password.

Comment thread docker-compose.yml Outdated

networks:
elastic:
driver: bridge

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any reason for bridge network, also if we want the other containers to use this we should use the same network.

@houyuan2

Copy link
Copy Markdown
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants