version: "3.8" services: open-webui: image: ghcr.io/open-webui/open-webui:main container_name: open-webui restart: unless-stopped ports: - "${OPEN_WEBUI_PORT:-3000}:8080" volumes: - open_webui_data:/app/backend/data environment: - OLLAMA_BASE_URL=${OLLAMA_BASE_URL:-http://ollama:11434} - WEBUI_SECRET_KEY=${WEBUI_SECRET_KEY:-changeme} - ENABLE_SIGNUP=${ENABLE_SIGNUP:-true} depends_on: - ollama ollama: image: ollama/ollama:latest container_name: ollama restart: unless-stopped ports: - "${OLLAMA_PORT:-11434}:11434" volumes: - ollama_data:/root/.ollama environment: - OLLAMA_HOST=0.0.0.0 deploy: resources: reservations: devices: - driver: nvidia count: all capabilities: [gpu] volumes: open_webui_data: ollama_data: