installation-docker.rst 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. .. _installation docker:
  2. ===================
  3. Docker installation
  4. ===================
  5. .. contents:: Contents
  6. :depth: 2
  7. :local:
  8. :backlinks: entry
  9. ----
  10. Docker image searx/searx
  11. ========================
  12. The docker image is `searx/searx <https://hub.docker.com/r/searx/searx>`_ (based on `github.com/searx/searx <https://github.com/searx/searx>`_).
  13. Make sure you have `installed Docker <https://docs.docker.com/get-docker/>`_. For instance, you can deploy a local instance:
  14. .. code:: sh
  15. export PORT=80
  16. docker pull searx/searx
  17. docker run --rm -d -v ${PWD}/searx:/etc/searx -p $PORT:8080 -e BASE_URL=http://localhost:$PORT/ searx/searx
  18. Go to ``http://localhost:$PORT``.
  19. Inside ``${PWD}/searx``, you will find ``settings.yml`` and ``uwsgi.ini``.
  20. You can modify these files according to your needs and restart the Docker image.
  21. Command line
  22. ------------
  23. .. code:: sh
  24. docker run --rm -it searx/searx -h
  25. .. program-output:: ../dockerfiles/docker-entrypoint.sh help
  26. Build the image
  27. ---------------
  28. It's also possible to build searx from the embedded Dockerfile.
  29. .. code:: sh
  30. git clone https://github.com/searx/searx.git
  31. cd searx
  32. make docker.build
  33. Public instance
  34. ===============
  35. If you intend to create a public instance using Docker, see https://github.com/searx/searx-docker