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

  redis:
    image: redis:3.2.12
    depends_on: [log]

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

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

  redis:
    image: redis:3.2.12
    depends_on: [log]

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

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

This reverts commit 005ca5a109a23e14270f05f4acb1d8701451614e.
