Skip to content

Instantly share code, notes, and snippets.

@bcachet
Last active February 27, 2018 12:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bcachet/167aaba15a0ecab4a72f56bd54b1937c to your computer and use it in GitHub Desktop.
Save bcachet/167aaba15a0ecab4a72f56bd54b1937c to your computer and use it in GitHub Desktop.
Elasticsearch 2.4.6
version: '2'
services:
elasticsearch:
build:
context: .
dockerfile: ./Dockerfile
hostname: elasticsearch
volumes:
- "./elasticsearch.yml:/etc/elasticsearch/elasticsearch.yml"
ports:
- "9200:9200"
- "9300:9300"
FROM elasticsearch:2.4.6
RUN bin/plugin install cloud-aws
docker-compose up
curl -XPUT http://localhost:9200/_snapshot/my_snapshot -H 'Content-Type: application/json' -d '{"type": "s3", "settings": {
"bucket": "MODIFY_ME_bucket-name",
"endpoint" : "https://sos-ch-dk-2.exo.io",
"region": "ch-dk-2",
"access_key": "MODIFY_ME_YourAccessKey",
"secret_key": "MODIFY_ME_YourSecretKey"}}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment