docker-compose.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233
  1. services:
  2. librey:
  3. image: ghcr.io/ahwxorg/librey:latest
  4. container_name: librey
  5. network_mode: bridge
  6. ports:
  7. - 8080:8080
  8. environment:
  9. - CONFIG_GOOGLE_DOMAIN=com
  10. - CONFIG_LANGUAGE=en
  11. - CONFIG_NUMBER_OF_RESULTS=10
  12. - CONFIG_INVIDIOUS_INSTANCE=https://yt.ahwx.org
  13. - CONFIG_DISABLE_BITTORRENT_SEARCH=false
  14. - CONFIG_HIDDEN_SERVICE_SEARCH=false
  15. - CONFIG_INSTANCE_FALLBACK=true
  16. - CONFIG_RATE_LIMIT_COOLDOWN=25
  17. - CONFIG_CACHE_TIME=20
  18. - CONFIG_DISABLE_API=false
  19. - CONFIG_TEXT_SEARCH_ENGINE=auto
  20. - CURLOPT_PROXY_ENABLED=false
  21. - CURLOPT_PROXY=192.0.2.53:8388
  22. - CURLOPT_PROXYTYPE=CURLPROXY_HTTP
  23. - CURLOPT_USERAGENT=Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:116.0) Gecko/20100101 Firefox/116.0
  24. - CURLOPT_FOLLOWLOCATION=true
  25. volumes:
  26. # - ./nginx_logs:/var/log/nginx # Disabled by default. These are the NGINX request logs.
  27. - ./php_logs:/var/log/php83 # Enabled by default. These are the PHP error logs.
  28. restart: unless-stopped
  29. watchtower: # Watchtower is not required but highly recommended, since Watchtower will re-pull and restart the LibreY container automatically whenever there's an update.
  30. image: containrrr/watchtower
  31. volumes:
  32. - /var/run/docker.sock:/var/run/docker.sock