docker-compose.ymlā¢791 B
version: '3.8'
services:
searxng:
image: searxng/searxng:latest
container_name: searxng
ports:
- "YOUR_IP:8080:8080" # Replace YOUR_IP with your server's IP (e.g., 192.168.1.100:8080:8080)
volumes:
- ./searxng:/etc/searxng:rw
environment:
- SEARXNG_BASE_URL=http://YOUR_IP:8080/ # Replace YOUR_IP with your server's IP
- SEARXNG_SECRET=CHANGE_THIS_SECRET_KEY # Generate with: openssl rand -hex 32
restart: unless-stopped
networks:
- searxng
redis:
image: redis:alpine
container_name: searxng-redis
command: redis-server --save 30 1 --loglevel warning
volumes:
- redis-data:/data
restart: unless-stopped
networks:
- searxng
networks:
searxng:
driver: bridge
volumes:
redis-data: