Created
January 26, 2025 11:17
-
-
Save iqiancheng/cd13871f41d4bb85122ede26abe43bbb to your computer and use it in GitHub Desktop.
whoogle-search self-hosted google search base
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# can't use mem_limit in a 3.x docker-compose file in non swarm mode | |
# see https://github.com/docker/compose/issues/4513 | |
version: "2.4" | |
services: | |
whoogle-search: | |
image: ${WHOOGLE_IMAGE:-benbusby/whoogle-search:0.9.3} | |
container_name: whoogle-search | |
restart: unless-stopped | |
pids_limit: 50 | |
mem_limit: 256mb | |
memswap_limit: 256mb | |
user: whoogle | |
security_opt: | |
- no-new-privileges | |
cap_drop: | |
- ALL | |
tmpfs: | |
- /config/:size=10M,uid=927,gid=927,mode=1700 | |
- /var/lib/tor/:size=15M,uid=927,gid=927,mode=1700 | |
- /run/tor/:size=1M,uid=927,gid=927,mode=1700 | |
volumes: | |
- ./whoogle_data/config:/config | |
- ./whoogle_data/tor:/var/lib/tor | |
- ./whoogle_data/tor_run:/run/tor | |
environment: | |
- WHOOGLE_USER=root | |
- WHOOGLE_PASS=password | |
- WHOOGLE_PROXY_TYPE=http | |
- WHOOGLE_PROXY_LOC=host.docker.internal:7890 | |
ports: | |
- 8000:5000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment