Skip to content

Commit

Permalink
openweb ui sample config
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianliechti committed Oct 7, 2024
1 parent 244c74a commit 39923c1
Show file tree
Hide file tree
Showing 2 changed files with 97 additions and 0 deletions.
13 changes: 13 additions & 0 deletions examples/local-openwebui/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
WEBUI_URL=http://localhost:3000
WEBUI_NAME=Platform Chat

CHAT_MODEL=gpt-4o
TASK_MODEL=gpt-4o-turbo
EMBEDDING_MODEL=text-embedding-3-large
STT_MODEL=whisper-1
TTS_MODEL=tts-1
TTS_VOICE=alloy
IMAGE_MODEL=dall-e-3

OPENAI_API_BASE=http://host.docker.internal:8080/v1
OPENAI_API_KEY=-
84 changes: 84 additions & 0 deletions examples/local-openwebui/compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
services:
openwebui:
image: ghcr.io/open-webui/open-webui:main
pull_policy: always
environment:
# General
- PORT=3000

- WEBUI_AUTH=false
- WEBUI_NAME=${WEBUI_NAME}
- WEBUI_URL=${WEBUI_URL}

- ENABLE_SIGNUP=false
- ENABLE_LOGIN_FORM=false

- ENABLE_ADMIN_EXPORT=false
- ENABLE_ADMIN_CHAT_ACCESS=false
- ENABLE_COMMUNITY_SHARING=false
- ENABLE_MESSAGE_RATING=false

# SSO
# - WEBUI_AUTH_TRUSTED_EMAIL_HEADER=X-Forwarded-Email
# - WEBUI_AUTH_TRUSTED_NAME_HEADER=X-Forwarded-User

- SHOW_ADMIN_DETAILS=false

# Ollama
- ENABLE_OLLAMA_API=false

- DEFAULT_MODELS=${CHAT_MODEL}

# OpenAI
- ENABLE_OPENAI_API=true
- OPENAI_API_BASE_URL=${OPENAI_API_BASE}
- OPENAI_API_KEY=${OPENAI_API_KEY}

# Tasks
- TASK_MODEL_EXTERNAL=${TASK_MODEL}

# RAG
- ENABLE_RAG_WEB_SEARCH=true
- ENABLE_RAG_HYBRID_SEARCH=true

- RAG_WEB_SEARCH_ENGINE=duckduckgo
- ENABLE_SEARCH_QUERY=true

- RAG_EMBEDDING_ENGINE=openai
- RAG_EMBEDDING_MODEL=${EMBEDDING_MODEL}

- RAG_OPENAI_API_BASE_URL=${OPENAI_API_BASE}
- RAG_OPENAI_API_KEY=${OPENAI_API_KEY}

- ENABLE_RAG_WEB_LOADER_SSL_VERIFICATION=false

# Speech to Text
- AUDIO_STT_ENGINE=openai
- AUDIO_STT_MODEL=${STT_MODEL}

- AUDIO_STT_OPENAI_API_BASE_URL=${OPENAI_API_BASE}
- AUDIO_STT_OPENAI_API_KEY=${OPENAI_API_KEY}

# Text to Speech
- AUDIO_TTS_ENGINE=openai
- AUDIO_TTS_MODEL=${TTS_MODEL}
- AUDIO_TTS_VOICE=${TTS_VOICE}

- AUDIO_TTS_OPENAI_API_BASE_URL=${OPENAI_API_BASE}
- AUDIO_TTS_OPENAI_API_KEY=${OPENAI_API_KEY}

# Image Generation
- ENABLE_IMAGE_GENERATION=true

- IMAGE_GENERATION_ENGINE=openai
- IMAGE_GENERATION_MODEL=${IMAGE_MODEL}

- IMAGES_OPENAI_API_BASE_URL=${OPENAI_API_BASE}
- IMAGES_OPENAI_API_KEY=${OPENAI_API_KEY}
ports:
- 3000:3000
volumes:
- openwebui-data:/app/backend/data

volumes:
openwebui-data:

0 comments on commit 39923c1

Please sign in to comment.