version: "3"
services:
  iics-secure-agent:
    build: .
    image: iics_secure_agent
    # Agent name that will show up in the IICS Admin Dashboard
    hostname: "${HOSTNAME}"
    # Takes a long time to shutdown gracefully, otherwise Docker will kill it
    stop_grace_period: 8m
    # Values can be set in a .env file or passed in at runtime
    environment:
      INFORMATICA_USER:
      INFORMATICA_PASSWORD:
      JSON_LOG: "true"
    volumes:
      - ${CONFIG_DIR}/odbc.ini:/home/agent/.odbc.ini
      - ${CONFIG_DIR}/infaagent.ini:${APPS_DIR}/agentcore/conf/infaagent.ini
      - ${ODBC_DATABASE_DIR}:/home/agent/databases
      - ${DRIVERS_DIR}:/${APPS_DIR}/Data_Integration_Server/ext/drivers
      - ${LOG_DIR}/agentcore.log:${APPS_DIR}/agentcore.log
      - ${LOG_DIR}/infaagent.log:${APPS_DIR}/infaagent.log
      - ${LOG_DIR}/consoleAgentManager.log:${APPS_DIR}/consoleAgentManager.log
      - ${LOG_DIR}/agentcore:${APPS_DIR}/agentcore/logs
      - ${LOG_DIR}/Administrator:${APPS_DIR}/Administrator/logs
      - ${LOG_DIR}/CIHProcessor:${APPS_DIR}/CIHProcessor/logs
      - ${LOG_DIR}/Common_Integration_Components:${APPS_DIR}/Common_Integration_Components/logs
      - ${LOG_DIR}/Data_Integration_Server:${APPS_DIR}/Data_Integration_Server/logs
      - ${LOG_DIR}/FileIntegrationService:${APPS_DIR}/FileIntegrationService/logs
      - ${LOG_DIR}/MassIngestionRuntime:${APPS_DIR}/MassIngestionRuntime/logs
      - ${LOG_DIR}/OpsInsightsDataCollector:${APPS_DIR}/OpsInsightsDataCollector/logs
      - ${LOG_DIR}/process-engine:${APPS_DIR}/process-engine/logs