Skip to content

Instantly share code, notes, and snippets.

@edgar
Last active April 9, 2016 16:37
Show Gist options
  • Save edgar/3a67d2224c8a54ee65c5111018fe6311 to your computer and use it in GitHub Desktop.
Save edgar/3a67d2224c8a54ee65c5111018fe6311 to your computer and use it in GitHub Desktop.
Initial docker-compose for Sinatra app accessing ElasticSearch
version: '2'
services:
search:
build: ../
volumes:
- ../:/app
ports:
- "4567:4567"
version: '2'
services:
search:
extends:
file: app.yml
service: search
env_file:
- ../env/test
depends_on:
- es
es:
extends:
file: es.yml
service: es
version: '2'
services:
es:
# AWS is using ES 1.5.2
image: monsantoco/elasticsearch:1.5.2
ports:
- "9200:9200"
- "9300:9300"
volumes:
- ../tmp/docker/elasticsearch/data:/usr/share/elasticsearch/data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment