From 57171b316c5cd93fd5944b284862a5520f678efd Mon Sep 17 00:00:00 2001 From: tiyn Date: Sat, 21 Oct 2023 16:09:09 +0200 Subject: [PATCH] docker: made searx use docker-compose --- wiki/docker/searx_-_searx.md | 34 ++++++++++++++++++++++++---------- 1 file changed, 24 insertions(+), 10 deletions(-) diff --git a/wiki/docker/searx_-_searx.md b/wiki/docker/searx_-_searx.md index 0be2ef6..b244da4 100644 --- a/wiki/docker/searx_-_searx.md +++ b/wiki/docker/searx_-_searx.md @@ -7,7 +7,7 @@ The official container and documentation was made by ## Set-up -Create the file `rebuild.sh`. +Create the files `rebuild.sh` and `docker-compose.yml` at the same place. Change the settings according to your needs and run `./rebuild.sh` afterwards. ## Volumes @@ -31,13 +31,27 @@ Set the following ports with the -p tag. ```sh #!/bin/sh -docker stop searx -docker rm searx -docker pull searx/searx -docker run --name searx \ - --restart unless-stopped \ - -v searx_etc:/etc/searx \ - -v searx_log:/var/log/uwsgi \ - -p 8080:8080 \ - -d searx/searx +docker-compose down +docker-compose up -d +``` + +## docker-compose.yml + +```sh +version: "2.1" +services: + searx: + image: searx/searx + volumes: + - etc:/etc/searx + - log:/var/log/uwsgi + restart: unless-stopped + ports: + - 8080:8080 + +volumes: + etc: + driver: local + log: + driver: local ```