2022-07-13 19:08:44 +03:00
|
|
|
# can't use mem_limit in a 3.x docker-compose file in non swarm mode
|
2021-02-26 18:33:11 +03:00
|
|
|
# see https://github.com/docker/compose/issues/4513
|
|
|
|
version: "2.4"
|
2020-05-10 22:59:37 +03:00
|
|
|
|
|
|
|
services:
|
|
|
|
whoogle-search:
|
2022-01-25 22:42:24 +03:00
|
|
|
image: ${WHOOGLE_IMAGE:-benbusby/whoogle-search}
|
2020-05-10 22:59:37 +03:00
|
|
|
container_name: whoogle-search
|
2021-05-24 19:56:08 +03:00
|
|
|
restart: unless-stopped
|
2021-02-26 18:33:11 +03:00
|
|
|
pids_limit: 50
|
|
|
|
mem_limit: 256mb
|
|
|
|
memswap_limit: 256mb
|
|
|
|
# user debian-tor from tor package
|
2022-01-25 21:06:46 +03:00
|
|
|
user: whoogle
|
2021-02-26 18:33:11 +03:00
|
|
|
security_opt:
|
|
|
|
- no-new-privileges
|
|
|
|
cap_drop:
|
|
|
|
- ALL
|
|
|
|
tmpfs:
|
2022-01-25 21:06:46 +03:00
|
|
|
- /config/:size=10M,uid=927,gid=927,mode=1700
|
2022-03-22 18:37:11 +03:00
|
|
|
- /var/lib/tor/:size=15M,uid=927,gid=927,mode=1700
|
2022-01-25 21:06:46 +03:00
|
|
|
- /run/tor/:size=1M,uid=927,gid=927,mode=1700
|
2020-11-04 01:28:43 +03:00
|
|
|
#environment: # Uncomment to configure environment variables
|
|
|
|
# Basic auth configuration, uncomment to enable
|
|
|
|
#- WHOOGLE_USER=<auth username>
|
|
|
|
#- WHOOGLE_PASS=<auth password>
|
|
|
|
# Proxy configuration, uncomment to enable
|
|
|
|
#- WHOOGLE_PROXY_USER=<proxy username>
|
|
|
|
#- WHOOGLE_PROXY_PASS=<proxy password>
|
2021-06-04 22:30:21 +03:00
|
|
|
#- WHOOGLE_PROXY_TYPE=<proxy type (http|https|socks4|socks5)
|
2020-11-04 01:28:43 +03:00
|
|
|
#- WHOOGLE_PROXY_LOC=<proxy host/ip>
|
2020-12-06 01:01:21 +03:00
|
|
|
# Site alternative configurations, uncomment to enable
|
|
|
|
# Note: If not set, the feature will still be available
|
Use farside.link for frontend alternatives in results (#560)
* Integrate Farside into Whoogle
When instances are ratelimited (when a captcha is returned instead of
the user's search results) the user can now hop to a new instance via
Farside, a new backend service that redirects users to working instances
of a particular frontend. In this case, it presents a user with a
Farside link to a new Whoogle (or Searx) instance instead, so that the
user can resume their search.
For the generated Farside->Whoogle link, the generated link includes the
user's current Whoogle configuration settings as URL params, to ensure a
more seamless transition between instances. This doesn't translate to
the Farside->Searx link, but potentially could with some changes.
* Expand conversion of config<->url params
Config settings can now be translated to and from URL params using a
predetermined set of "safe" keys (i.e. config settings that easily
translate to URL params).
* Allow jumping instances via Farside when ratelimited
When instances are ratelimited (when a captcha is returned instead of
the user's search results) the user can now hop to a new instance via
Farside, a new backend service that redirects users to working instances
of a particular frontend. In this case, it presents a user with a
Farside link to a new Whoogle (or Searx) instance instead, so that the
user can resume their search.
For the generated Farside->Whoogle link, the generated link includes the
user's current Whoogle configuration settings as URL params, to ensure a
more seamless transition between instances. This doesn't translate to
the Farside->Searx link, but potentially could with some changes.
Closes #554
Closes #559
2021-12-09 03:27:33 +03:00
|
|
|
# with default values.
|
|
|
|
#- WHOOGLE_ALT_TW=farside.link/nitter
|
|
|
|
#- WHOOGLE_ALT_YT=farside.link/invidious
|
|
|
|
#- WHOOGLE_ALT_IG=farside.link/bibliogram/u
|
|
|
|
#- WHOOGLE_ALT_RD=farside.link/libreddit
|
|
|
|
#- WHOOGLE_ALT_MD=farside.link/scribe
|
2022-03-21 19:08:52 +03:00
|
|
|
#- WHOOGLE_ALT_TL=farside.link/lingva
|
|
|
|
#- WHOOGLE_ALT_IMG=farside.link/rimgo
|
|
|
|
#- WHOOGLE_ALT_WIKI=farside.link/wikiless
|
2022-08-01 20:49:09 +03:00
|
|
|
#- WHOOGLE_ALT_IMDB=farside.link/libremdb
|
|
|
|
#- WHOOGLE_ALT_QUORA=farside.link/quetre
|
2021-05-03 21:23:44 +03:00
|
|
|
#env_file: # Alternatively, load variables from whoogle.env
|
|
|
|
#- whoogle.env
|
2020-05-10 22:59:37 +03:00
|
|
|
ports:
|
2020-05-13 02:14:55 +03:00
|
|
|
- 5000:5000
|