2021-02-26 15:33:11 +00:00
|
|
|
# cant 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"
|
2020-05-10 19:59:37 +00:00
|
|
|
|
|
|
|
services:
|
|
|
|
whoogle-search:
|
|
|
|
image: benbusby/whoogle-search
|
|
|
|
container_name: whoogle-search
|
2021-05-24 16:56:08 +00:00
|
|
|
restart: unless-stopped
|
2021-02-26 15:33:11 +00:00
|
|
|
pids_limit: 50
|
|
|
|
mem_limit: 256mb
|
|
|
|
memswap_limit: 256mb
|
|
|
|
# user debian-tor from tor package
|
|
|
|
user: '102'
|
|
|
|
security_opt:
|
|
|
|
- no-new-privileges
|
|
|
|
cap_drop:
|
|
|
|
- ALL
|
|
|
|
tmpfs:
|
|
|
|
- /config/:size=10M,uid=102,gid=102,mode=1700
|
|
|
|
- /var/lib/tor/:size=10M,uid=102,gid=102,mode=1700
|
|
|
|
- /run/tor/:size=1M,uid=102,gid=102,mode=1700
|
2020-11-03 22:28:43 +00: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 19:30:21 +00:00
|
|
|
#- WHOOGLE_PROXY_TYPE=<proxy type (http|https|socks4|socks5)
|
2020-11-03 22:28:43 +00:00
|
|
|
#- WHOOGLE_PROXY_LOC=<proxy host/ip>
|
2020-12-05 22:01:21 +00:00
|
|
|
# Site alternative configurations, uncomment to enable
|
|
|
|
# Note: If not set, the feature will still be available
|
|
|
|
# with default values.
|
|
|
|
#- WHOOGLE_ALT_TW=nitter.net
|
|
|
|
#- WHOOGLE_ALT_YT=invidious.snopyta.org
|
|
|
|
#- WHOOGLE_ALT_IG=bibliogram.art/u
|
2021-01-23 22:43:53 +00:00
|
|
|
#- WHOOGLE_ALT_RD=libredd.it
|
2021-06-15 14:14:42 +00:00
|
|
|
#- WHOOGLE_ALT_TL=lingva.ml
|
2021-10-16 18:22:00 +00:00
|
|
|
#- WHOOGLE_ALT_MD=scribe.rip
|
2021-05-03 18:23:44 +00:00
|
|
|
#env_file: # Alternatively, load variables from whoogle.env
|
|
|
|
#- whoogle.env
|
2020-05-10 19:59:37 +00:00
|
|
|
ports:
|
2020-05-12 23:14:55 +00:00
|
|
|
- 5000:5000
|