Skip to content

feat: open-webui #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DOMAIN=
1 change: 1 addition & 0 deletions forgejo/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ services:
- "traefik.enable=true"
- "traefik.http.routers.${SUBDOMAIN}.rule=Host(`${SUBDOMAIN}.bowline.im`)"
- "traefik.http.services.${SUBDOMAIN}.loadbalancer.server.port=3000"
- "traefik.http.routers.${SUBDOMAIN}.tls=true"

db:
image: postgres:14
Expand Down
1 change: 1 addition & 0 deletions ollama/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONFIG_PATH=
15 changes: 15 additions & 0 deletions ollama/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
services:
ollama:
image: ollama/ollama:latest
container_name: ollama
ports:
- "11434:11434"
volumes:
- ${CONFIG_PATH}:/root/.ollama
restart: unless-stopped
networks:
- backend

networks:
backend:
external: true
3 changes: 3 additions & 0 deletions ollama/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# ollama

The easiest way to get up and running with large language models.
18 changes: 18 additions & 0 deletions open-webui/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# User/Group IDs
PUID=1000
PGID=1000

# Timezone
TZ=America/New_York

# Domain
DOMAIN=your-domain.com
SUBDOMAIN=openwebui
# Base configuration path
CONFIG_PATH=/opt/homelab/config

# Specific openwebui config
# https://docs.openwebui.com/getting-started/env-configuration
DATA_DIR=/app/backend/data
# WebUI Secret Key (generate with: openssl rand -hex 32)
WEBUI_SECRET_KEY=your-secret-key-here
22 changes: 22 additions & 0 deletions open-webui/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
services:
openwebui:
image: ghcr.io/open-webui/open-webui:main
container_name: open-webui
restart: unless-stopped
env_file:
- ./.env
volumes:
- ${CONFIG_PATH}/data:/app/backend/data
networks:
- frontend
- backend
labels:
- "traefik.enable=true"
- "traefik.http.routers.${SUBDOMAIN}.rule=Host(`${SUBDOMAIN}.${DOMAIN}`)"
- "traefik.http.services.${SUBDOMAIN}.loadbalancer.server.port=8080"

networks:
frontend:
external: true
backend:
external: true
2 changes: 2 additions & 0 deletions traefik/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ services:
- "traefik.http.routers.dashboard.rule=Host(`traefik.${DOMAIN}`)"
- "traefik.http.routers.dashboard.service=api@internal"
- "traefik.http.routers.dashboard.tls.certresolver=myresolver"
- "traefik.http.routers.dashboard.tls.domains[0].main=${DOMAIN}"
- "traefik.http.routers.dashboard.tls.domains[0].sans=*.${DOMAIN}"
- "traefik.http.routers.dashboard.middlewares=global-chain"
#- "traefik.http.routers.dashboard.middlewares=tinyauth"

Expand Down