version: "2"
services:

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

  sonar:
    image: openlmis/dev:4
    links:
      - db
      - log
    volumes:
      - '.:/app'
    entrypoint:
      - 'gradle'
    command:
      - 'sonarqube'
    environment:
      GRADLE_OPTS: '-Dorg.gradle.daemon=false'
    env_file: .env

  image:
    build: .
    image: openlmis/referencedata

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

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

version: "2"
services:

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

  sonar:
    image: openlmis/dev:4
    links:
      - db
      - log
    volumes:
      - '.:/app'
    entrypoint:
      - 'gradle'
    command:
      - 'sonarqube'
    environment:
      GRADLE_OPTS: '-Dorg.gradle.daemon=false'
    env_file: .env

  image:
    build: .
    image: openlmis/referencedata

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

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

Revert "OLMIS-5493, add missing link"
Revert "OLMIS-5493, add missing link"

This reverts commit 234e5fd93d2952d08a348e56a15d7eed1add4d5e.
