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:
|
services:
|
||||||
# Caddy
|
# Caddy
|
||||||
caddy:
|
caddy:
|
||||||
image: bensuperpc/caddy-l4:latest
|
#image: bensuperpc/caddy-l4:latest
|
||||||
|
image: caddy:latest
|
||||||
container_name: caddy
|
container_name: caddy
|
||||||
profiles:
|
profiles:
|
||||||
- caddy
|
- caddy
|
||||||
|
|||||||
@@ -18,6 +18,15 @@ services:
|
|||||||
# Fix root permissions on mounted volumes
|
# Fix root permissions on mounted volumes
|
||||||
command: chown -R ${PUID:-1000}:${PGID:-1000} /public_data /private_data
|
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:
|
volumes:
|
||||||
public_data:
|
public_data:
|
||||||
name: public_data
|
name: public_data
|
||||||
|
|||||||
@@ -5,16 +5,23 @@ services:
|
|||||||
container_name: ollama
|
container_name: ollama
|
||||||
profiles:
|
profiles:
|
||||||
- open-webui
|
- open-webui
|
||||||
|
- ollama
|
||||||
depends_on:
|
depends_on:
|
||||||
- caddy
|
- caddy
|
||||||
restart: on-failure:5
|
restart: on-failure:5
|
||||||
tty: true
|
tty: true
|
||||||
volumes:
|
volumes:
|
||||||
- ollama:/root/.ollama
|
- ollama:/root/.ollama
|
||||||
|
env_file:
|
||||||
|
- ./env/ollama.env
|
||||||
security_opt:
|
security_opt:
|
||||||
- no-new-privileges:true
|
- no-new-privileges:true
|
||||||
networks:
|
networks:
|
||||||
- infra-network
|
- infra-network
|
||||||
|
# devices:
|
||||||
|
# - /dev/dri/card0:/dev/dri/card0
|
||||||
|
# - /dev/dri/renderD128:/dev/dri/renderD128
|
||||||
|
|
||||||
|
|
||||||
open-webui:
|
open-webui:
|
||||||
image: ghcr.io/open-webui/open-webui:main
|
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