From 83d807a717b09864a202d3da7361773285f7f4c0 Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Wed, 25 May 2022 15:56:02 -0500 Subject: [PATCH] Add files --- .env | 1 + .gitignore | 1 + docker-compose.yaml | 35 +++++++++++++++++++++++++++++++++++ 3 files changed, 37 insertions(+) create mode 100644 .env create mode 100644 .gitignore create mode 100644 docker-compose.yaml diff --git a/.env b/.env new file mode 100644 index 0000000..b12eaa8 --- /dev/null +++ b/.env @@ -0,0 +1 @@ +SEARXNG_HOSTNAME=search.bbaovanc.com diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8fce603 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +data/ diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..615cae7 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,35 @@ +version: '3.7' + +services: + redis: + image: "redis:alpine" + command: redis-server --save "" --appendonly "no" + tmpfs: + - /var/lib/redis + cap_drop: + - ALL + cap_add: + - SETGID + - SETUID + - DAC_OVERRIDE + + searxng: + image: searxng/searxng:latest + ports: + - 127.0.0.1:88:8080 + volumes: + - ./data/searxng:/etc/searxng:rw + environment: + - SEARXNG_BASE_URL=https://${SEARXNG_HOSTNAME:-localhost}/ + cap_drop: + - ALL + cap_add: + - CHOWN + - SETGID + - SETUID + - DAC_OVERRIDE + logging: + driver: "json-file" + options: + max-size: "1m" + max-file: "1"