Created
March 19, 2018 18:58
-
-
Save selcukusta/898433d369bf5b793d16c80e1584afa5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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