Skip to content

Commit d1d5a9d

Browse files
committed
Add searxng
1 parent 16304ea commit d1d5a9d

11 files changed

Lines changed: 80 additions & 8 deletions

File tree

infrastructure/docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ include:
4747
- services/argus/docker-compose.argus.yml
4848
# Dependency-Track
4949
- services/dependency-track/docker-compose.dependency-track.yml
50+
# Searxng
51+
- services/searxng/docker-compose.searxng.yml
5052
# Minecraft
5153
- services/minecraft-server/docker-compose.yml
5254
# 7daystodie

infrastructure/services/caddy/config/Caddyfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,4 @@ import website/syncthing.caddy
4141
import website/uptimekuma.caddy
4242
import website/argus.caddy
4343
import website/dependency-track.caddy
44+
import website/searxng.caddy
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
searxng.{$MAIN_DOMAIN} {
2+
reverse_proxy {$SEARXNG_ADDRESS}
3+
}

infrastructure/services/caddy/docker-compose.caddy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ services:
4343
- picoshare-network
4444
- memos-network
4545
- dependency-track-network
46+
- searxng-network
47+
- wordpress-network
4648
# - satisfactory-network
4749
# - teamfortress2-network
4850
# - minecraft-network

infrastructure/services/caddy/env/caddy.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ PSITRANSFER_ADDRESS=psitransfer:3000
1919
WORDPRESS_ADDRESS=wordpress:9000
2020
DEPENDENCY_TRACK_FRONTEND_ADDRESS=dependency-track-frontend:8080
2121
DEPENDENCY_TRACK_APISERVER_ADDRESS=dependency-track-apiserver:8080
22+
SEARXNG_ADDRESS=searxng:8080

infrastructure/services/open-webui/docker-compose.open-webui.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
22
ollama:
3-
image: ollama/ollama:latest
3+
image: ollama/ollama:${OLLAMA_DOCKER_TAG-latest}
44
#platform: linux/amd64
55
container_name: ollama
66
profiles:
@@ -12,19 +12,20 @@ services:
1212
tty: true
1313
volumes:
1414
- ollama:/root/.ollama
15+
# ports:
16+
# - ${OLLAMA_PORT-11434}:11434
1517
env_file:
1618
- ./env/ollama.env
1719
security_opt:
1820
- no-new-privileges:true
1921
networks:
2022
- open-webui-network
21-
# devices:
22-
# - /dev/dri/card0:/dev/dri/card0
23-
# - /dev/dri/renderD128:/dev/dri/renderD128
24-
23+
devices:
24+
- /dev/dri
25+
- /dev/kfd
2526

2627
open-webui:
27-
image: ghcr.io/open-webui/open-webui:main
28+
image: ghcr.io/open-webui/open-webui:${WEBUI_DOCKER_TAG-main}
2829
container_name: open-webui
2930
profiles:
3031
- open-webui
@@ -38,6 +39,8 @@ services:
3839
#environment:
3940
# - UID=${PUID:-1000}
4041
# - GID=${PGID:-1000}
42+
# ports:
43+
# - ${OPEN_WEBUI_PORT-3000}:8080
4144
restart: on-failure:5
4245
networks:
4346
- open-webui-network

infrastructure/services/open-webui/env/ollama.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@
55
# OLLAMA_DEBUG=1
66
# OLLAMA_SCHED_SPREAD=1
77
# OLLAMA_FLASH_ATTENTION=1
8+
# OLLAMA_CONTEXT_LENGTH=2048

infrastructure/services/open-webui/env/open-webui.env

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
OLLAMA_BASE_URL=http://ollama:11434
2-
#WEBUI_SECRET_KEY=
2+
# openssl rand -hex 32
3+
WEBUI_SECRET_KEY=7d83b15a417d090ba5c6b899270a05dd215c60848354c0c7574226d6ff02f39e
34
#HF_HUB_OFFLINE=1
45
# Disable analytics
56
SCARF_NO_ANALYTICS=true
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Read the documentation before using the `docker-compose.yml` file:
2+
# https://docs.searxng.org/admin/installation-docker.html
3+
#
4+
# Additional ENVs:
5+
# https://docs.searxng.org/admin/settings/settings_general.html#settings-general
6+
# https://docs.searxng.org/admin/settings/settings_server.html#settings-server
7+
8+
# Use a specific version tag. E.g. "latest" or "2026.3.25-541c6c3cb".
9+
#SEARXNG_VERSION=latest
10+
11+
# Listen to a specific address.
12+
#SEARXNG_HOST=[::]
13+
14+
# Listen to a specific port.
15+
#SEARXNG_PORT=8080
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
services:
2+
searxng:
3+
container_name: searxng
4+
image: docker.io/searxng/searxng:${SEARXNG_VERSION:-latest}
5+
restart: always
6+
depends_on:
7+
- caddy
8+
profiles:
9+
- searxng
10+
# ports:
11+
# - ${SEARXNG_PORT-8080}:8080
12+
env_file: ./config/searxng.env
13+
networks:
14+
- searxng-network
15+
volumes:
16+
- searxng-config:/etc/searxng/
17+
- searxng-data:/var/cache/searxng/
18+
dns:
19+
- 1.1.1.1
20+
- 8.8.8.8
21+
22+
valkey:
23+
container_name: searxng-valkey
24+
profiles:
25+
- searxng
26+
image: docker.io/valkey/valkey:9-alpine
27+
command: valkey-server --save 30 1 --loglevel warning
28+
restart: always
29+
networks:
30+
- searxng-network
31+
volumes:
32+
- valkey-data:/data/
33+
34+
networks:
35+
searxng-network:
36+
driver: bridge
37+
name: searxng-network
38+
39+
volumes:
40+
searxng-data: {}
41+
searxng-config: {}
42+
valkey-data: {}
43+

0 commit comments

Comments
 (0)