ClassyGitShadowzzh

docker-compose-gaia.yml

docker-compose-gaia.yml

services:
  openwebui:
    image: ghcr.io/open-webui/open-webui:main
    ports:
      - 127.0.0.1:4242:4242
    restart: on-failure:3
    volumes:
      - ./examples/gaia/openwebui-patch/ca81bd47c050_add_config_table.py:/app/backend/open_webui/migrations/versions/ca81bd47c050_add_config_table.py
      - ./examples/gaia/GAIA:/app/aworld/examples/gaia/GAIA
    environment:
      - HF_HUB_OFFLINE=1
      - ENABLE_OLLAMA_API=False
      - ENABLE_DIRECT_CONNECTIONS=False
      - ENABLE_EVALUATION_ARENA_MODELS=False
      - ENABLE_TITLE_GENERATION=False
      - ENABLE_AUTOCOMPLETE_GENERATION=False
      - ENABLE_TAGS_GENERATION=False
      - OPENAI_API_BASE_URL=http://gaia_agent:8888/v1
      - OPENAI_API_KEY=xxx
    deploy:
      resources:
        limits:
          memory: 2G

  gaia_agent:
    build:
      context: .
      dockerfile: Dockerfile_gaia
    platform: linux/amd64
    ports:
      - 127.0.0.1:8888:8888
    volumes:
      - ./.env:/app/aworld/.env
    env_file:
      - ./.env
    restart: on-failure:3
    deploy:
      resources:
        limits:
          memory: 4G