1
0
Fork 0

add searxng

This commit is contained in:
Lukáš Kucharczyk 2023-03-23 10:55:57 +01:00
parent 8ecf33f31d
commit 4be92cad70
Signed by: lukas
SSH Key Fingerprint: SHA256:vMuSwvwAvcT6htVAioMP7rzzwMQNi3roESyhv+nAxeg
3 changed files with 36 additions and 5 deletions

5
.env
View File

@ -1,4 +1,5 @@
REGISTRY_URL=registry.kucharczyk.xyz REGISTRY_URL=registry.kucharczyk.xyz
DOMAIN=kucharczyk.xyz
TZ=Europe/Prague TZ=Europe/Prague
STORAGE_PATH=/srv/mergerfs/storage STORAGE_PATH=/srv/mergerfs/storage
DOCKER_STORAGE_PATH=/docker DOCKER_STORAGE_PATH=/docker
@ -69,4 +70,6 @@ SYNCTHING_INTERNAL_PORT2=22000/tcp
SYNCTHING_EXTERNAL_PORT3=22000 SYNCTHING_EXTERNAL_PORT3=22000
SYNCTHING_INTERNAL_PORT3=22000/udp SYNCTHING_INTERNAL_PORT3=22000/udp
SYNCTHING_EXTERNAL_PORT4=21027 SYNCTHING_EXTERNAL_PORT4=21027
SYNCTHING_INTERNAL_PORT4=21027/udp SYNCTHING_INTERNAL_PORT4=21027/udp
SEARXNG_EXTERNAL_PORT=8082
SEARXNG_INTERNAL_PORT=8080

View File

@ -37,14 +37,13 @@ services:
- "${SNIBOX_EXTERNAL_PORT}:${SNIBOX_CADDY_INTERNAL_PORT}" - "${SNIBOX_EXTERNAL_PORT}:${SNIBOX_CADDY_INTERNAL_PORT}"
user: ${PUID} user: ${PUID}
volumes: volumes:
# - "${DOCKER_STORAGE_PATH}/caddy/data:/data"
# - "${DOCKER_STORAGE_PATH}/caddy/config:/config"
# - "${DOCKER_STORAGE_PATH}/caddy/Caddyfile:/etc/caddy/Caddyfile"
- "${DOCKER_STORAGE_PATH}/caddy/config:/etc/caddy/" - "${DOCKER_STORAGE_PATH}/caddy/config:/etc/caddy/"
# - "${DOCKER_STORAGE_PATH}/caddy/srv:/srv"
- "/www/notes:/srv/notes" - "/www/notes:/srv/notes"
- "timetracker-static:/srv/timetracker" - "timetracker-static:/srv/timetracker"
- "snibox-static:/srv/snibox" - "snibox-static:/srv/snibox"
environment:
- SEARXNG_HOSTNAME=${SEARXNG_HOSTNAME:-http://localhost:80}
- SEARXNG_TLS=${LETSENCRYPT_EMAIL:-internal}
networks: networks:
- public - public
- caddy - caddy
@ -52,6 +51,10 @@ services:
- infra - infra
- base - base
restart: unless-stopped restart: unless-stopped
# cap_drop:
# - ALL
# cap_add:
# - NET_BIND_SERVICE
timetracker: timetracker:
image: ${REGISTRY_URL}/timetracker image: ${REGISTRY_URL}/timetracker
@ -616,6 +619,30 @@ services:
networks: networks:
- public - public
searxng:
container_name: searxng
image: searxng/searxng:latest
networks:
- caddy
- redis
ports:
- "${SEARXNG_EXTERNAL_PORT}:${SEARXNG_INTERNAL_PORT}"
volumes:
- "${DOCKER_STORAGE_PATH}/searxng:/etc/searxng:rw"
environment:
- SEARXNG_BASE_URL=https://${SEARXNG_HOSTNAME:-localhost}/
cap_drop:
- ALL
cap_add:
- CHOWN
- SETGID
- SETUID
logging:
driver: "json-file"
options:
max-size: "1m"
max-file: "1"
networks: networks:
loki: loki:
caddy: caddy:

1
searxng.env Normal file
View File

@ -0,0 +1 @@
SEARXNG_HOSTNAME=search.$DOMAIN