mirror of
https://github.com/Haxxnet/Compose-Examples
synced 2024-11-27 22:11:12 +00:00
50 lines
1.9 KiB
YAML
50 lines
1.9 KiB
YAML
# can't use mem_limit in a 3.x docker-compose file in non swarm mode
|
|
# see https://github.com/docker/compose/issues/4513
|
|
|
|
services:
|
|
|
|
whoogle-search:
|
|
image: benbusby/whoogle-search
|
|
container_name: whoogle-search
|
|
restart: unless-stopped
|
|
ports:
|
|
- 5000:5000
|
|
expose:
|
|
- 5000
|
|
pids_limit: 50
|
|
mem_limit: 256mb
|
|
memswap_limit: 256mb
|
|
# user debian-tor from tor package
|
|
user: whoogle
|
|
security_opt:
|
|
- no-new-privileges
|
|
cap_drop:
|
|
- ALL
|
|
#tmpfs:
|
|
# - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/whoogle/config/:size=10M,uid=927,gid=927,mode=1700
|
|
# - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/whoogle/var/lib/tor/:size=15M,uid=927,gid=927,mode=1700
|
|
# - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/whoogle/run/tor/:size=1M,uid=927,gid=927,mode=1700
|
|
#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>
|
|
#- WHOOGLE_PROXY_TYPE=<proxy type (http|https|socks4|socks5)
|
|
#- WHOOGLE_PROXY_LOC=<proxy host/ip>
|
|
# Site alternative configurations, uncomment to enable
|
|
# Note: If not set, the feature will still be available
|
|
# 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
|
|
#- WHOOGLE_ALT_TL=farside.link/lingva
|
|
#- WHOOGLE_ALT_IMG=farside.link/rimgo
|
|
#- WHOOGLE_ALT_WIKI=farside.link/wikiless
|
|
#- WHOOGLE_ALT_IMDB=farside.link/libremdb
|
|
#- WHOOGLE_ALT_QUORA=farside.link/quetre
|
|
#env_file: # Alternatively, load variables from whoogle.env
|
|
#- whoogle.env |