open-webui on thonkpad

master
turtlebasket 2024-09-30 22:08:45 +00:00
parent 79c250a05e
commit ec3c1f04f0
2 changed files with 40 additions and 1 deletions

2
.gitignore vendored
View File

@ -1,5 +1,5 @@
# Docker volume mounts # Docker volume mounts
*/*-data/ **/*-data/
**/*.db **/*.db
# envfiles # envfiles

View File

@ -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