From c6e01d4696eeea9b4cb80774d54830fbc1fbae6d Mon Sep 17 00:00:00 2001 From: EmaMaker Date: Sun, 9 Jan 2022 20:02:03 +0000 Subject: [PATCH] services: ship searx --- README.md | 2 ++ docker_compose/searx.xml | 31 +++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 docker_compose/searx.xml diff --git a/README.md b/README.md index 9e67e0b..4c2e10e 100644 --- a/README.md +++ b/README.md @@ -87,3 +87,5 @@ These are the available environment variables: ### Nginx * **NGINX_CONF_DIR**: custom nginx configurations +### Searx +* **SEARX_DIR**: Folder for searx files diff --git a/docker_compose/searx.xml b/docker_compose/searx.xml new file mode 100644 index 0000000..5dc5772 --- /dev/null +++ b/docker_compose/searx.xml @@ -0,0 +1,31 @@ +version: "3.3" + +services: + searx: + container_name: searx + image: searx/searx:latest + restart: always + command: ${SEARX_COMMAND:-} + volumes: + - $SEARX_DIR:/etc/searx:rw + environment: + - BIND_ADDRESS=0.0.0.0:3030 + - BASE_URL=https://searx.$LETSENCRYPT_DOMAIN + - VIRTUAL_HOST=searx.$LETSENCRYPT_DOMAIN + - VIRTUAL_PORT=3030 + - LETSENCRYPT_HOST=searx.$LETSENCRYPT_DOMAIN + - LETSENCRYPT_EMAIL=$LETSENCRYPT_EMAIL + cap_drop: + - ALL + cap_add: + - CHOWN + - SETGID + - SETUID + - DAC_OVERRIDE + networks: + - default + +networks: + default: + external: + name: $SERVER_DOCKER_NETWORKNAME