From ec3c1f04f0ac27f9075ff158b7c6e2aa4ba2f792 Mon Sep 17 00:00:00 2001 From: turtlebasket <32886427+turtlebasket@users.noreply.github.com> Date: Mon, 30 Sep 2024 22:08:45 +0000 Subject: [PATCH] open-webui on thonkpad --- .gitignore | 2 +- thonkpad/open-webui/docker-compose.yml | 39 ++++++++++++++++++++++++++ 2 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 thonkpad/open-webui/docker-compose.yml diff --git a/.gitignore b/.gitignore index 9f6b4cf..8cbe09f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ # Docker volume mounts -*/*-data/ +**/*-data/ **/*.db # envfiles diff --git a/thonkpad/open-webui/docker-compose.yml b/thonkpad/open-webui/docker-compose.yml new file mode 100644 index 0000000..57fa38c --- /dev/null +++ b/thonkpad/open-webui/docker-compose.yml @@ -0,0 +1,39 @@ +version: "3" + +networks: + open-webui: + external: false + +services: + open-webui: + image: ghcr.io/open-webui/open-webui:main + container_name: open-webui + volumes: + - ./open-webui-data:/app/backend/data + env_file: + - "./.env" + environment: + - ENV=prod + - PORT=8080 + - WEBUI_AUTH=True + - WEBUI_SECRET_KEY=${OPEN_WEBUI_SECRET_KEY} + - DEFAULT_LOCALE=en + - ENABLE_OPENAI_API=True + - ENABLE_OLLAMA_API=False + - TASK_MODEL_EXTERNAL=gpt-4o + - OPENAI_API_KEY=${OPENAI_API_KEY} + - CORS_ALLOW_ORIGIN=https://open-webui.michaellisano.com + restart: unless-stopped + networks: + - open-webui + + open-webui-cloudflared: + container_name: open-webui-cloudflared + image: cloudflare/cloudflared + restart: unless-stopped + command: tunnel run + environment: + - TUNNEL_TOKEN=${OPEN_WEBUI_TUNNEL_TOKEN} + networks: + - open-webui +