diff --git a/.gitignore b/.gitignore index 68d36ab..5364923 100644 --- a/.gitignore +++ b/.gitignore @@ -5,7 +5,7 @@ sync.ffs_lock # Copyparty *.hist/ -# Volumes and data directories +# Volumes, configs and data directories gitea/gitea-db/ gitea/gitea-data/* n8n/n8n-data/* @@ -21,6 +21,7 @@ checkmk/checkmk/* downtify/Downtify_downloads headscale/config/* headscale/data/* +searxng/core-config/settings.yml # Steaming services files streaming/jellyfin/* @@ -96,4 +97,4 @@ temp/* .env.anna .env.forust .env.* -!*example \ No newline at end of file +!*example diff --git a/searxng/.env.example b/searxng/.env.example new file mode 100644 index 0000000..e8c7808 --- /dev/null +++ b/searxng/.env.example @@ -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 diff --git a/searxng/compose.yaml b/searxng/compose.yaml new file mode 100644 index 0000000..766b798 --- /dev/null +++ b/searxng/compose.yaml @@ -0,0 +1,45 @@ +# Read the documentation before using the `docker-compose.yml` file: +# https://docs.searxng.org/admin/installation-docker.html +services: + core: + container_name: searxng-core + image: docker.io/searxng/searxng:${SEARXNG_VERSION:-latest} + restart: unless-stopped + # ports: + # - ${SEARXNG_PORT:-8080} + env_file: .env + labels: + - "traefik.enable=true" + - "traefik.http.services.searxng.loadbalancer.server.port=8080" + # Prod Router + - "traefik.http.routers.searxng.rule=Host(`s.forust.xyz` || `searxng.forust.xyz`)" + - "traefik.http.routers.searxng.entrypoints=websecure" + - "traefik.http.routers.searxng.tls=true" + # Local Router + - "traefik.http.routers.searxng-local.rule=Host(`s.workstation.internal` || `searxng.workstation.internal`)" + - "traefik.http.routers.searxng-local.entrypoints=websecure" + - "traefik.http.routers.searxng-local.tls=true" + # Dev Router + - "traefik.http.routers.searxng-dev.rule=Host(`searxng.gigaforust.internal`)" + - "traefik.http.routers.searxng-dev.entrypoints=websecure" + - "traefik.http.routers.searxng-dev.tls=true" + networks: + - proxy + volumes: + - ./core-config/:/etc/searxng/:Z + - core-data:/var/cache/searxng/ + + valkey: + container_name: searxng-valkey + image: docker.io/valkey/valkey:9-alpine + command: valkey-server --save 30 1 --loglevel warning + restart: unless-stopped + volumes: + - valkey-data:/data/ + +volumes: + core-data: + valkey-data: +networks: + proxy: + external: true