1
0
mirror of https://github.com/searx/searx synced 2025-02-24 15:47:54 +01:00
searx/_sources/admin/installation-docker.rst.txt

61 lines
1.3 KiB
Plaintext
Raw Normal View History

2020-06-19 11:15:15 +02:00
.. _installation docker:
===================
Docker installation
===================
.. contents:: Contents
:depth: 2
:local:
:backlinks: entry
2020-07-25 18:33:36 +02:00
----
Docker image searx/searx
========================
The docker image is `searx/searx <https://hub.docker.com/r/searx/searx>`_ (based on `github.com/searx/searx <https://github.com/searx/searx>`_).
Make sure you have `installed Docker <https://docs.docker.com/get-docker/>`_. For instance, you can deploy a local instance:
2020-06-19 11:15:15 +02:00
.. code:: sh
2020-07-25 18:33:36 +02:00
export PORT=80
docker pull searx/searx
docker run --rm -d -v ${PWD}/searx:/etc/searx -p $PORT:8080 -e BASE_URL=http://localhost:$PORT/ searx/searx
2020-06-19 11:15:15 +02:00
Go to ``http://localhost:$PORT``.
2020-07-25 18:33:36 +02:00
Inside ``${PWD}/searx``, you will find ``settings.yml`` and ``uwsgi.ini``.
You can modify these files according to your needs and restart the Docker image.
Command line
------------
.. code:: sh
docker run --rm -it searx/searx -h
2020-09-30 10:35:05 +02:00
.. program-output:: ../dockerfiles/docker-entrypoint.sh help
2020-07-25 18:33:36 +02:00
Build the image
---------------
It's also possible to build searx from the embedded Dockerfile.
2020-06-19 11:15:15 +02:00
.. code:: sh
2020-09-30 10:35:05 +02:00
git clone https://github.com/searx/searx.git
2020-06-19 11:15:15 +02:00
cd searx
make docker.build
2020-07-25 18:33:36 +02:00
Public instance
===============
If you intend to create a public instance using Docker, see https://github.com/searx/searx-docker