diff --git a/README.md b/README.md index e7e819e..9a996a6 100644 --- a/README.md +++ b/README.md @@ -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 - [Install docker](https://docs.docker.com/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 -- ```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) -- [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). See [#73](https://github.com/asciimoo/morty/pull/73) to build the docker image. +- [Caddy](https://github.com/abiosoft/caddy-docker) as a reverse proxy (take care to call LetsEncrypt) +- [filtron](https://github.com/asciimoo/filtron): See [#4](https://github.com/asciimoo/filtron/pull/4) 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 diff --git a/searx-docker.service b/searx-docker.service new file mode 100644 index 0000000..c641a25 --- /dev/null +++ b/searx-docker.service @@ -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