From aa429e24619ead4bb832e1e0e5ebd2c4cf317f87 Mon Sep 17 00:00:00 2001 From: sickprodigy Date: Fri, 21 Nov 2025 19:18:23 -0500 Subject: [PATCH] Add docker-compose configuration for open-webui service --- open-webui/docker-compose.yml | 50 +++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 open-webui/docker-compose.yml diff --git a/open-webui/docker-compose.yml b/open-webui/docker-compose.yml new file mode 100644 index 0000000..edc0eaf --- /dev/null +++ b/open-webui/docker-compose.yml @@ -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 \ No newline at end of file