mirror of
https://github.com/bensuperpc/infrastructure.git
synced 2026-05-18 01:34:39 +02:00
Improve ollama
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
services:
|
||||
# Caddy
|
||||
caddy:
|
||||
image: bensuperpc/caddy-l4:latest
|
||||
#image: bensuperpc/caddy-l4:latest
|
||||
image: caddy:latest
|
||||
container_name: caddy
|
||||
profiles:
|
||||
- caddy
|
||||
|
||||
@@ -18,6 +18,15 @@ services:
|
||||
# Fix root permissions on mounted volumes
|
||||
command: chown -R ${PUID:-1000}:${PGID:-1000} /public_data /private_data
|
||||
|
||||
watchtower:
|
||||
container_name: watchtower
|
||||
profiles:
|
||||
- main_infrastructure
|
||||
image: nickfedor/watchtower:latest
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
public_data:
|
||||
name: public_data
|
||||
|
||||
@@ -5,16 +5,23 @@ services:
|
||||
container_name: ollama
|
||||
profiles:
|
||||
- open-webui
|
||||
- ollama
|
||||
depends_on:
|
||||
- caddy
|
||||
restart: on-failure:5
|
||||
tty: true
|
||||
volumes:
|
||||
- ollama:/root/.ollama
|
||||
env_file:
|
||||
- ./env/ollama.env
|
||||
security_opt:
|
||||
- no-new-privileges:true
|
||||
networks:
|
||||
- infra-network
|
||||
# devices:
|
||||
# - /dev/dri/card0:/dev/dri/card0
|
||||
# - /dev/dri/renderD128:/dev/dri/renderD128
|
||||
|
||||
|
||||
open-webui:
|
||||
image: ghcr.io/open-webui/open-webui:main
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
# OLLAMA_GPU_OVERHEAD=0
|
||||
# OLLAMA_VULKAN=1
|
||||
# OLLAMA_NEW_ENGINE=1
|
||||
# OLLAMA_GPU_LAYERS=
|
||||
# OLLAMA_DEBUG=1
|
||||
# OLLAMA_SCHED_SPREAD=1
|
||||
# OLLAMA_FLASH_ATTENTION=1
|
||||
Reference in New Issue
Block a user