Update documentation

This commit is contained in:
Dalf 2019-07-06 15:32:50 +02:00
parent 6dea64a9dc
commit ecb6517f82
2 changed files with 39 additions and 6 deletions

View file

@ -8,12 +8,23 @@ Do not use it for now : this is a work in progress and there is no antibot featu
## How to use it ## How to use it
- [Install docker](https://docs.docker.com/install/) - [Install docker](https://docs.docker.com/install/)
- [Install docker-compose](https://docs.docker.com/compose/install/) - [Install docker-compose](https://docs.docker.com/compose/install/)
- ```git clone https://github.com/searx/searx-docker.git``` - Get searx-docker
```sh
mkdir -p /opt
cd /opt
git clone https://github.com/searx/searx-docker.git
```
- Configure the .env file - Configure the .env file
- ```docker-compose up -d``` - Check using ```docker-compose up```
- If everything is working, then :
```sh
cp /opt/searx-docker/searx-docker.service /etc/systemd/system
systemctl start searx-docker.service
```
## What is included for now ? ## What is included ?
- [Caddy](https://github.com/mholt/caddy) as a reverse proxy (take care to call LetsEncrypt) - [Caddy](https://github.com/abiosoft/caddy-docker) as a reverse proxy (take care to call LetsEncrypt)
- [searx](https://github.com/asciimoo/searx). See [#1629](https://github.com/asciimoo/searx/pull/1629) to build the docker image. - [filtron](https://github.com/asciimoo/filtron): See [#4](https://github.com/asciimoo/filtron/pull/4) to build the docker image.
- [morty](https://github.com/asciimoo/morty). See [#73](https://github.com/asciimoo/morty/pull/73) to build the docker image. - [searx](https://github.com/asciimoo/searx): See [#1629](https://github.com/asciimoo/searx/pull/1629) to build the docker image.
- [morty](https://github.com/asciimoo/morty): clone the project, then "make build" to create the docker image

22
searx-docker.service Normal file
View file

@ -0,0 +1,22 @@
[Unit]
Description=searx-docker service
Requires=docker.service
After=docker.service
[Service]
Restart=always
WorkingDirectory=/opt/searx-docker/
# Remove old containers, images and volumes
ExecStartPre=/usr/local/bin/docker-compose down -v
ExecStartPre=/usr/local/bin/docker-compose rm -fv
# Compose up
ExecStart=/usr/bin/docker-compose up
# Compose down, remove containers and volumes
ExecStop=/usr/local/bin/docker-compose down -v
[Install]
WantedBy=multi-user.target