Skip to content

Instantly share code, notes, and snippets.

@antoinekociuba
Last active October 7, 2020 15:22
Show Gist options
  • Save antoinekociuba/23a179a48b5a733ba3dd26f73848726f to your computer and use it in GitHub Desktop.
Save antoinekociuba/23a179a48b5a733ba3dd26f73848726f to your computer and use it in GitHub Desktop.
Start an ElasticSearch container, with specific version and storage location
docker run -d --restart=unless-stopped --name=container_name_elasticsearch -p 123456:9200 -e "discovery.type=single-node" -v /home/www/project/.es_data:/usr/share/elasticsearch/data elasticsearch:7.6.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment