Add Docker Compose files for Open WebUI and Watchtower services
This commit is contained in:
parent
39fbe85a5f
commit
461956b549
3 changed files with 51 additions and 0 deletions
3
containers/README.md
Normal file
3
containers/README.md
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
# Containers
|
||||||
|
|
||||||
|
Easy to deploy in portainer that nix
|
||||||
27
containers/open-webui/docker-compose.yml
Normal file
27
containers/open-webui/docker-compose.yml
Normal file
|
|
@ -0,0 +1,27 @@
|
||||||
|
services:
|
||||||
|
openwebui:
|
||||||
|
image: ghcr.io/open-webui/open-webui:main
|
||||||
|
ports:
|
||||||
|
- "4000:8080"
|
||||||
|
volumes:
|
||||||
|
- open-webui:/app/backend/data
|
||||||
|
environment:
|
||||||
|
WEBUI_URL: https://ai.${DOMAIN}
|
||||||
|
ENABLE_OPENAI_API: true
|
||||||
|
OPENAI_API_BASE_URL: http://open-webui.home:12345
|
||||||
|
ENABLE_OLLAMA_API: false
|
||||||
|
ENABLE_WEB_SEARCH: true
|
||||||
|
WEB_SEARCH_ENGINE: searxng
|
||||||
|
SEARXNG_QUERY_URL: https://search.${DOMAIN}/search?q=<query>
|
||||||
|
OAUTH_CLIENT_ID: ${OAUTH_CLIENT_ID}
|
||||||
|
OAUTH_CLIENT_SECRET: ${OAUTH_CLIENT_SECRET}
|
||||||
|
OAUTH_PROVIDER_NAME: authentik
|
||||||
|
OPENID_PROVIDER_URL: https://auth.${DOMAIN}/application/o/openwebui/.well-known/openid-configuration
|
||||||
|
OPENID_REDIRECT_URI: https://ai.${DOMAIN}/oauth/oidc/callback
|
||||||
|
ENABLE_OAUTH_SIGNUP: true
|
||||||
|
ENABLE_LOGIN_FORM: false
|
||||||
|
labels:
|
||||||
|
- "com.centurylinklabs.watchtower.enable=true"
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
open-webui:
|
||||||
21
containers/watchtower/docker-compose.yml
Normal file
21
containers/watchtower/docker-compose.yml
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
services:
|
||||||
|
watchtower:
|
||||||
|
image: containrrr/watchtower
|
||||||
|
container_name: watchtower
|
||||||
|
extends:
|
||||||
|
file: "../base.yml"
|
||||||
|
service: base
|
||||||
|
volumes:
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
environment:
|
||||||
|
- TZ=Europe/Rome
|
||||||
|
- WATCHTOWER_SCHEDULE=0 0 4 * * *
|
||||||
|
- WATCHTOWER_CLEANUP=true
|
||||||
|
- WATCHTOWER_LABEL_ENABLE=true
|
||||||
|
- WATCHTOWER_NOTIFICATIONS=shoutrrr
|
||||||
|
- WATCHTOWER_NOTIFICATION_URL=telegram://${BOT_TOKEN}@telegram/?channels=${CHAT_ID}
|
||||||
|
labels:
|
||||||
|
- "com.centurylinklabs.watchtower.enable=true"
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
open-webui:
|
||||||
Loading…
Add table
Add a link
Reference in a new issue