services:
  web-client:
    image: ${WEB_CLIENT_IMAGE_REPOSITORY:-robot-installer-web-client}:${IMAGE_TAG:-local}
    build:
      context: .
      args:
        VITE_PACKAGE_BASE_URL: ${VITE_PACKAGE_BASE_URL:-}
        VITE_AGENT_BASE_URL: ${VITE_AGENT_BASE_URL:-http://127.0.0.1:5010}
        VITE_APP_OPEN_URL: ${VITE_APP_OPEN_URL:-http://127.0.0.1}
    container_name: ${WEB_CLIENT_CONTAINER_NAME:-robot-installer-web-client}
    environment:
      PACKAGE_PROXY_TARGET: ${PACKAGE_PROXY_TARGET:-http://robot-installer-web-server:3000}
    ports:
      - "${WEB_CLIENT_PORT:-8080}:80"
    networks:
      - robot-installer
    restart: unless-stopped

networks:
  robot-installer:
    name: ${DOCKER_NETWORK:-robot-installer-net}
    external: true
