version: '2.4'

services:


  ingestionworker:
    command: ["java", "${INGESTIONWORKER_JAVA_OPTS}", "-DformatMsgNoLookups=true", "-XX:+ExitOnOutOfMemoryError",  "-jar",  "ingestionworker-all.jar"]

  indexworker:
    command: ["java", "${INDEXWORKER_JAVA_OPTS}", "-DformatMsgNoLookups=true", "-XX:+ExitOnOutOfMemoryError",  "-jar",  "indexworker-all.jar"]
    
  isilongateway:
    command: ["java", "${ISILONGATEWAY_JAVA_OPTS}", "-DformatMsgNoLookups=true", "-XX:+ExitOnOutOfMemoryError",  "-jar",  "isilongateway-all.jar"]

  kafka:
    environment: 
      JAVA_OPTS: "-DformatMsgNoLookups=true"

  kafkahq:
    environment: 
      JAVA_OPTS: "-DformatMsgNoLookups=true"

  licensemanager:
    command: ["java", "${LICENSEMANAGER_JAVA_OPTS}", "-DformatMsgNoLookups=true", "-XX:+ExitOnOutOfMemoryError",  "-jar",  "licensemanager-all.jar"]

  notificationsvc:
    command: ["java", "${NOTIFICATIONSVC_JAVA_OPTS}", "-DformatMsgNoLookups=true", "-XX:+ExitOnOutOfMemoryError",  "-Dlog4j.configurationFile=/opt/superna/rda/conf/log4j2.xml", "-jar",  "notificationsvc-all.jar"]

  searchmw:
    command: ["/bin/bash", "-l", "-c", "cd /opt/superna/searchmw && java -DformatMsgNoLookups=true -jar searchmw-all.jar"]

  statsreporter:
    command: ["/bin/bash", "-l", "-c", "cd /opt/superna/statsreporter && java -DformatMsgNoLookups=true -jar statsreporter-all.jar"]

  statussvc:
    command: ["java", "${STATUSSVC_JAVA_OPTS}", "-DformatMsgNoLookups=true", "-XX:+ExitOnOutOfMemoryError",  "-jar",  "statussvc-all.jar"]

  taskmaster:
    command: ["java", "${TASKMASTER_JAVA_OPTS}", "-DformatMsgNoLookups=true", "-XX:+ExitOnOutOfMemoryError",  "-jar",  "taskmaster-all.jar"]

  zookeeper:
    environment: 
      JAVA_OPTS: "-DformatMsgNoLookups=true"