Forked from
Forked from
docker-compose.yml
# SearXNG for altra-web-search — extract this file + Dockerfile and run `docker compose up -d`
# Plugin config: SearXNG URL = http://localhost:8080 , enable SearXNG = true
services:
searxng:
build: .
# or use prebuilt image directly: image: searxng/searxng:latest
# If you use `build: .`, the Dockerfile above just wraps searxng/searxng:latest
# To skip building, comment `build:` and uncomment `image:`:
# image: searxng/searxng:latest
container_name: searxng
restart: unless-stopped
ports:
- "8080:8080"
volumes:
# Uncomment to persist custom config (create searxng/settings.yml first)
# - ./searxng/settings.yml:/etc/searxng/settings.yml:ro
# - ./searxng/uwsgi.ini:/etc/searxng/uwsgi.ini:ro
- searxng-data:/etc/searxng
environment:
# See https://docs.searxng.org/admin/installation-docker.html
- SEARXNG_BASE_URL=http://localhost:8080/
networks:
- searxng-net
cap_drop:
- ALL
cap_add:
- CHOWN
- SETGID
- SETUID
read_only: true
# SearXNG needs a writable tmpfs for /tmp
tmpfs:
- /tmp
# Optional: SearXNG Redis cache (improves speed, not required)
# Uncomment if you want caching
# searxng-redis:
# image: redis:7-alpine
# container_name: searxng-redis
# restart: unless-stopped
# networks:
# - searxng-net
# command: redis-server --save "" --appendonly no
# tmpfs:
# - /data
networks:
searxng-net:
driver: bridge
volumes:
searxng-data:
driver: local
docker-compose.yml
# SearXNG for altra-web-search — extract this file + Dockerfile and run `docker compose up -d`
# Plugin config: SearXNG URL = http://localhost:8080 , enable SearXNG = true
services:
searxng:
build: .
# or use prebuilt image directly: image: searxng/searxng:latest
# If you use `build: .`, the Dockerfile above just wraps searxng/searxng:latest
# To skip building, comment `build:` and uncomment `image:`:
# image: searxng/searxng:latest
container_name: searxng
restart: unless-stopped
ports:
- "8080:8080"
volumes:
# Uncomment to persist custom config (create searxng/settings.yml first)
# - ./searxng/settings.yml:/etc/searxng/settings.yml:ro
# - ./searxng/uwsgi.ini:/etc/searxng/uwsgi.ini:ro
- searxng-data:/etc/searxng
environment:
# See https://docs.searxng.org/admin/installation-docker.html
- SEARXNG_BASE_URL=http://localhost:8080/
networks:
- searxng-net
cap_drop:
- ALL
cap_add:
- CHOWN
- SETGID
- SETUID
read_only: true
# SearXNG needs a writable tmpfs for /tmp
tmpfs:
- /tmp
# Optional: SearXNG Redis cache (improves speed, not required)
# Uncomment if you want caching
# searxng-redis:
# image: redis:7-alpine
# container_name: searxng-redis
# restart: unless-stopped
# networks:
# - searxng-net
# command: redis-server --save "" --appendonly no
# tmpfs:
# - /data
networks:
searxng-net:
driver: bridge
volumes:
searxng-data:
driver: local