Update Containers/Docker/Docker Compose/SearX.md

This commit is contained in:
Nicole Rappe
2024-01-11 22:18:40 -07:00
parent 0203527019
commit f2c3c85f3d

View File

@ -1,5 +1,6 @@
**Purpose**: Deploys a SearX Meta Search Engine Server **Purpose**: Deploys a SearX Meta Search Engine Server
## Docker Configuration
```jsx title="docker-compose.yml" ```jsx title="docker-compose.yml"
version: '3' version: '3'
services: services:
@ -12,9 +13,9 @@ services:
restart: always restart: always
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.http.routers.searx.rule=Host(`searx.cyberstrawberry.net`)" - "traefik.http.routers.searx.rule=Host(`searx.bunny-lab.io`)"
- "traefik.http.routers.searx.entrypoints=websecure" - "traefik.http.routers.searx.entrypoints=websecure"
- "traefik.http.routers.searx.tls.certresolver=letsencrypt" - "traefik.http.routers.searx.tls.certresolver=myresolver"
- "traefik.http.services.searx.loadbalancer.server.port=8080" - "traefik.http.services.searx.loadbalancer.server.port=8080"
networks: networks:
docker_network: docker_network:
@ -27,3 +28,24 @@ networks:
```jsx title=".env" ```jsx title=".env"
Not Applicable Not Applicable
``` ```
## Traefik Reverse Proxy Configuration
If the container does not run on the same host as Traefik, you will need to manually add configuration to Traefik's dynamic config file, outlined below.
``` yaml
http:
routers:
searx:
entryPoints:
- websecure
tls:
certResolver: myresolver
service: searx
rule: Host(`searx.bunny-lab.io`)
services:
searx:
loadBalancer:
servers:
- url: http://192.168.5.124:8080
passHostHeader: true
```