services:
  jh-people-8091:
    build: .
    container_name: jh-people-8091
    ports:
      - "8091:8091"
    environment:
      PORT: "8091"
      STARTUP_MAINTENANCE: "0"
      MYSQL_HOST: "${MYSQL_HOST:-172.16.42.111}"
      MYSQL_PORT: "${MYSQL_PORT:-3306}"
      MYSQL_USER: "${MYSQL_USER:-root}"
      MYSQL_PASSWORD: "${MYSQL_PASSWORD:-hanmacerp!}"
      MYSQL_DB: "${MYSQL_DB:-jangheon_manhour}"
      ERP_BASE_URL: "${ERP_BASE_URL:-http://erp.jangheon.co.kr/projt_mng}"
      ERP_LOGIN_ID: "${ERP_LOGIN_ID:-g25001}"
      ERP_LOGIN_PW: "${ERP_LOGIN_PW:-00000}"
      INTRANET_BASE_URL: "${INTRANET_BASE_URL:-http://erp.jangheon.co.kr/intranet/}"
      INTRANET_LOGIN_ID: "${INTRANET_LOGIN_ID:-G25001}"
      INTRANET_LOGIN_PW: "${INTRANET_LOGIN_PW:-00000}"
    volumes:
      - ./matching.db:/app/matching.db
    restart: unless-stopped

  jh-project-8092:
    build: .
    container_name: jh-project-8092
    ports:
      - "8092:8092"
    environment:
      PORT: "8092"
      STARTUP_MAINTENANCE: "0"
      MYSQL_HOST: "${MYSQL_HOST:-172.16.42.111}"
      MYSQL_PORT: "${MYSQL_PORT:-3306}"
      MYSQL_USER: "${MYSQL_USER:-root}"
      MYSQL_PASSWORD: "${MYSQL_PASSWORD:-hanmacerp!}"
      MYSQL_DB: "${MYSQL_DB:-jangheon_manhour}"
      ERP_BASE_URL: "${ERP_BASE_URL:-http://erp.jangheon.co.kr/projt_mng}"
      ERP_LOGIN_ID: "${ERP_LOGIN_ID:-g25001}"
      ERP_LOGIN_PW: "${ERP_LOGIN_PW:-00000}"
      INTRANET_BASE_URL: "${INTRANET_BASE_URL:-http://erp.jangheon.co.kr/intranet/}"
      INTRANET_LOGIN_ID: "${INTRANET_LOGIN_ID:-G25001}"
      INTRANET_LOGIN_PW: "${INTRANET_LOGIN_PW:-00000}"
    volumes:
      - ./matching.db:/app/matching.db
    depends_on:
      - jh-people-8091
    restart: unless-stopped
