Skip to content

Instantly share code, notes, and snippets.

@selcukusta
Created March 19, 2018 18:58
Show Gist options
  • Select an option

  • Save selcukusta/898433d369bf5b793d16c80e1584afa5 to your computer and use it in GitHub Desktop.

Select an option

Save selcukusta/898433d369bf5b793d16c80e1584afa5 to your computer and use it in GitHub Desktop.
version: '2.3'
services:
es:
container_name: elasticsearch
build:
context: ./elasticsearch
dockerfile: Dockerfile
networks:
- testnetwork
healthcheck:
test: ["CMD-SHELL", "curl --silent http://localhost:9200/test_index/_stats/docs || exit 1"]
interval: 10s
timeout: 1s
retries: 6
app:
container_name: app
build:
context: ./app
dockerfile: Dockerfile
networks:
- testnetwork
depends_on:
es:
condition: service_healthy
networks:
testnetwork:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment