version: "2"
services:

  builder:
    image: openlmis/dev:3
    links:
      - db
      - log
    volumes:
      - '.:/app'
    command:
      - './build.sh'
    environment:
      GRADLE_OPTS: '-Dorg.gradle.daemon=false'
    env_file: .env

  sonar:
    image: openlmis/dev:3
    volumes:
      - '.:/app'
    entrypoint:
      - 'gradle'
    command:
      - 'clean'
      - 'sonarqube'
    environment:
      GRADLE_OPTS: '-Dorg.gradle.daemon=false $SONAR_LOGIN $SONAR_PASSWORD'
    env_file: .env

  demo-data:
    image: openlmis/dev:3
    links:
      - db
      - log
    volumes:
      - '.:/app'
    entrypoint:
      - 'gradle'
    command:
      - 'demoDataSeed'
    environment:
      GRADLE_OPTS: '-Dorg.gradle.daemon=false'
    env_file: .env

  image:
    build: .
    image: openlmis/fulfillment

  db:
    image: openlmis/postgres:9.6
    env_file: .env

  log:
    image: openlmis/rsyslog:1
    volumes:
      - '../logs/fulfillment:/var/log'


version: "2"
services:

  builder:
    image: openlmis/dev:3
    links:
      - db
      - log
    volumes:
      - '.:/app'
    command:
      - './build.sh'
    environment:
      GRADLE_OPTS: '-Dorg.gradle.daemon=false'
    env_file: .env

  sonar:
    image: openlmis/dev:3
    links:
      - log
    volumes:
      - '.:/app'
    entrypoint:
      - 'gradle'
    command:
      - 'clean'
      - 'sonarqube'
    environment:
      GRADLE_OPTS: '-Dorg.gradle.daemon=false $SONAR_LOGIN $SONAR_PASSWORD'
    env_file: .env

  demo-data:
    image: openlmis/dev:3
    links:
      - db
      - log
    volumes:
      - '.:/app'
    entrypoint:
      - 'gradle'
    command:
      - 'demoDataSeed'
    environment:
      GRADLE_OPTS: '-Dorg.gradle.daemon=false'
    env_file: .env

  image:
    build: .
    image: openlmis/fulfillment

  db:
    image: openlmis/postgres:9.6
    env_file: .env

  log:
    image: openlmis/rsyslog:1
    volumes:
      - '../logs/fulfillment:/var/log'


Add link to log container
Add link to log container

Some integration test introduced by pull request merge needs the log container, since it is sending log statements to it.
