Add docker-compose configuration for open-webui service
This commit is contained in:
50
open-webui/docker-compose.yml
Normal file
50
open-webui/docker-compose.yml
Normal file
@@ -0,0 +1,50 @@
|
||||
version: "3.8"
|
||||
services:
|
||||
open-webui:
|
||||
image: ghcr.io/open-webui/open-webui:v0.6.36
|
||||
|
||||
container_name: open-webui
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "3030:8080"
|
||||
environment:
|
||||
- GLOBAL_LOG_LEVEL=DEBUG
|
||||
- MODEL_SERVER_URL=http://ollama:11434
|
||||
- PROVIDER=ollama,openai
|
||||
- OPENAI_API_KEY=YourAPIKEY
|
||||
# This variable is required to be set, otherwise you may experience Websocket issues, doesn't fix my issues tho
|
||||
- CORS_ALLOW_ORIGIN=https://open-webui.example.com;https://example.com;http://open-webui;http://open-webui:8080;https://open-webui:8080;http://192.168.1.239;http://192.168.1.239:3030;http://localhost:3030;http://192.168.1.1:80;http://192.168.1.1:443
|
||||
- WEBUI_URL=https://open-webui.example.com;https://example.com;http://open-webui;http://open-webui:8080;https://open-webui:8080;http://192.168.1.239;http://192.168.1.239:3030;http://localhost:3030;http://192.168.1.1:80;http://192.168.1.1:443
|
||||
|
||||
# - ENABLE_WEBSOCKET_SUPPORT=false # didn't work, default true
|
||||
# - WEBUI_AUTH=false # can't be any users in db
|
||||
# # Required for multi-worker/multi-instance deployments
|
||||
# - REDIS_URL=redis://redis-valkey-webui:6379/0
|
||||
|
||||
# # Required for websocket support
|
||||
# - WEBSOCKET_MANAGER=redis
|
||||
# - WEBSOCKET_REDIS_URL=redis://redis-valkey-webui:6379/1
|
||||
|
||||
volumes:
|
||||
- /docker-containers/open-webui/data:/app/backend/data
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
networks: # Specify network for container
|
||||
homelab:
|
||||
aliases:
|
||||
- openwebui # adding multiple aliases under certain network
|
||||
- open-wui
|
||||
# depends_on:
|
||||
# - redis-valkey-webui
|
||||
|
||||
# redis-valkey-webui:
|
||||
# image: redis:7
|
||||
# container_name: redis-valkey-webui
|
||||
# restart: unless-stopped
|
||||
# networks:
|
||||
# - homelab
|
||||
|
||||
networks:
|
||||
homelab:
|
||||
name: homelab # Networks can also be given a custom name
|
||||
external: true # This option causes compose to join the above network instead of making a _default one
|
||||
Reference in New Issue
Block a user