Commit 31f7f219 authored by Nicolas Gelot's avatar Nicolas Gelot
Browse files

Docker-compose, introduce docker-compose to run spot

In order to run the project in a dedicated environment this
patch introduces the docker-compose file. To join redis service
a setup via an environment variable `SEARX_REDIS_HOST` is added.
parent 0adf7bb1
......@@ -9,25 +9,22 @@ Spot was forked from searx: read `documentation <
|OpenCollective searx backers|
|OpenCollective searx sponsors|
Setup Redis
**Install Redis**
``$ sudo apt-get install redis-server
$ pip install redis``
Getting Started
- clone source:
``git clone && cd my-spot``
- install dependencies: ``./ update_packages``
- edit your
`settings.yml <>`__
(set your ``secret_key``!)
- run ``python searx/`` to start the application
You can run spot with docker-compose to run the **redis** database and
the **spot** service. First of all you have to install **docker** and
**docker-compose** on your host, then follow instructions below to run spot
with one command.
- Run the docker-compose **up** command to start the project ``docker-compose up --build``
- Getting the ip of the spot service and go to http://<spot-ip>:8888
.. note:: Here the command to get the IP of the spot service
``docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' my-spot_spot_1``
For all the details, follow this `step by step
You can also install **redis** and **spot** on your host, for all the details, follow this `step by step
installation <>`__.
version: '3.6'
image: redis:5-alpine
build: .
......@@ -95,3 +95,5 @@ if 'BASE_URL' in environ:
settings['server']['base_url'] = environ['BASE_URL']
if 'IMAGE_PROXY' in environ:
settings['server']['image_proxy'] = environ['IMAGE_PROXY']
if 'SEARX_REDIS_HOST' in environ:
settings['redis']['host'] = environ['SEARX_REDIS_HOST']
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment