mirror of
https://github.com/bensuperpc/infrastructure.git
synced 2026-06-17 03:59:10 +02:00
Add searxng (WIP)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
services:
|
||||
ollama:
|
||||
image: ollama/ollama:latest
|
||||
image: ollama/ollama:${OLLAMA_DOCKER_TAG-latest}
|
||||
#platform: linux/amd64
|
||||
container_name: ollama
|
||||
profiles:
|
||||
@@ -12,19 +12,21 @@ services:
|
||||
tty: true
|
||||
volumes:
|
||||
- ollama:/root/.ollama
|
||||
# ports:
|
||||
# - ${OLLAMA_PORT-11434}:11434
|
||||
env_file:
|
||||
- ./env/ollama.env
|
||||
security_opt:
|
||||
- no-new-privileges:true
|
||||
networks:
|
||||
- open-webui-network
|
||||
# devices:
|
||||
# - /dev/dri/card0:/dev/dri/card0
|
||||
# - /dev/dri/renderD128:/dev/dri/renderD128
|
||||
devices:
|
||||
- /dev/dri
|
||||
- /dev/kfd
|
||||
|
||||
|
||||
open-webui:
|
||||
image: ghcr.io/open-webui/open-webui:main
|
||||
image: ghcr.io/open-webui/open-webui:${WEBUI_DOCKER_TAG-main}
|
||||
container_name: open-webui
|
||||
profiles:
|
||||
- open-webui
|
||||
@@ -38,6 +40,8 @@ services:
|
||||
#environment:
|
||||
# - UID=${PUID:-1000}
|
||||
# - GID=${PGID:-1000}
|
||||
# ports:
|
||||
# - ${OPEN_WEBUI_PORT-3000}:8080
|
||||
restart: on-failure:5
|
||||
networks:
|
||||
- open-webui-network
|
||||
|
||||
@@ -5,3 +5,4 @@
|
||||
# OLLAMA_DEBUG=1
|
||||
# OLLAMA_SCHED_SPREAD=1
|
||||
# OLLAMA_FLASH_ATTENTION=1
|
||||
# OLLAMA_CONTEXT_LENGTH=2048
|
||||
|
||||
+2
-1
@@ -1,5 +1,6 @@
|
||||
OLLAMA_BASE_URL=http://ollama:11434
|
||||
#WEBUI_SECRET_KEY=
|
||||
# openssl rand -hex 32
|
||||
WEBUI_SECRET_KEY=7d83b15a417d090ba5c6b899270a05dd215c60848354c0c7574226d6ff02f39e
|
||||
#HF_HUB_OFFLINE=1
|
||||
# Disable analytics
|
||||
SCARF_NO_ANALYTICS=true
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
# Read the documentation before using the `docker-compose.yml` file:
|
||||
# https://docs.searxng.org/admin/installation-docker.html
|
||||
#
|
||||
# Additional ENVs:
|
||||
# https://docs.searxng.org/admin/settings/settings_general.html#settings-general
|
||||
# https://docs.searxng.org/admin/settings/settings_server.html#settings-server
|
||||
|
||||
# Use a specific version tag. E.g. "latest" or "2026.3.25-541c6c3cb".
|
||||
#SEARXNG_VERSION=latest
|
||||
|
||||
# Listen to a specific address.
|
||||
#SEARXNG_HOST=[::]
|
||||
|
||||
# Listen to a specific port.
|
||||
#SEARXNG_PORT=8080
|
||||
@@ -0,0 +1,31 @@
|
||||
# Read the documentation before using the `docker-compose.yml` file:
|
||||
# https://docs.searxng.org/admin/installation-docker.html
|
||||
|
||||
name: searxng
|
||||
|
||||
services:
|
||||
core:
|
||||
container_name: searxng-core
|
||||
image: docker.io/searxng/searxng:${SEARXNG_VERSION:-latest}
|
||||
restart: always
|
||||
ports:
|
||||
- ${SEARXNG_HOST:+${SEARXNG_HOST}:}${SEARXNG_PORT:-8080}:${SEARXNG_PORT:-8080}
|
||||
env_file: ./.env
|
||||
volumes:
|
||||
- ./core-config/:/etc/searxng/:Z
|
||||
- core-data:/var/cache/searxng/
|
||||
dns:
|
||||
- 1.1.1.1
|
||||
- 8.8.8.8
|
||||
|
||||
valkey:
|
||||
container_name: searxng-valkey
|
||||
image: docker.io/valkey/valkey:9-alpine
|
||||
command: valkey-server --save 30 1 --loglevel warning
|
||||
restart: always
|
||||
volumes:
|
||||
- valkey-data:/data/
|
||||
|
||||
volumes:
|
||||
core-data:
|
||||
valkey-data:
|
||||
Reference in New Issue
Block a user