version: "2"

services:

  app:
    build: .
    image: keboola/elastic-writer
    tty: true
    stdin_open: true

  app-tests:
    image: keboola/elastic-writer
    entrypoint: sh
    command: -c 'sleep 10 && ./phpunit.sh'
    tty: true
    stdin_open: true
    links:
      - elasticsearch13
      - elasticsearch22

  elasticsearch13:
    image: elasticsearch:1.3
    command: elasticsearch  -Des.cluster.name="SAPI-Testing-13"

  elasticsearch22:
    image: elasticsearch:2.2
    command: elasticsearch -Des.cluster.name="SAPI-Testing-22"

version: "2"

services:

  app:
    build: .
    image: keboola/elastic-writer
    tty: true
    stdin_open: true
    volumes:
      - ./:/code
    links:
      - elasticsearch13
      - elasticsearch22
    entrypoint: bash

  app-tests:
    image: keboola/elastic-writer
    entrypoint: sh
    command: -c 'sleep 10 && ./phpunit.sh'
    tty: true
    stdin_open: true
    links:
      - elasticsearch13
      - elasticsearch22

  elasticsearch13:
    image: elasticsearch:1.3
    command: elasticsearch  -Des.cluster.name="SAPI-Testing-13"

  elasticsearch22:
    image: elasticsearch:2.2
    command: elasticsearch -Des.cluster.name="SAPI-Testing-22"

Fix basic docker service (for development)
Fix basic docker service (for development)

[ci skip]
