version: '3.8' # Standalone docker-compose for aichat.zoneco.org (Open WebUI) # This can be used independently or the service can be added to the main docker-compose.yml # # Deployment command (standalone): # docker-compose -f docker-compose.aichat.yml up -d # # Or with the main infrastructure, just deploy the main docker-compose.yml # which already includes this service. networks: funzone-net: external: true services: # Open WebUI - AI Chat Interface # https://github.com/open-webui/open-webui aichat: image: ghcr.io/open-webui/open-webui:main container_name: funzone_aichat ports: - "127.0.0.1:3005:8080" # Only localhost access (proxied through nginx) environment: - OPENAI_API_KEY=${OPENAI_API_KEY:-your_openai_api_key_here} # Optional: Uncomment and configure as needed # - WEBUI_NAME=AI Chat Zoneco # - WEBUI_URL=https://aichat.zoneco.org # - WEBUI_SECRET_KEY=${WEBUI_SECRET_KEY} # - DEFAULT_USER_ROLE=user # - ENABLE_SIGNUP=true # - ENABLE_LOGIN=true # - DEFAULT_MODELS=gpt-4 volumes: - open-webui-data:/app/backend/data networks: - funzone-net restart: unless-stopped healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8080/health" ] interval: 30s timeout: 10s start_period: 40s retries: 3 volumes: open-webui-data: