diff options
author | terminaldweller <thabogre@gmail.com> | 2022-07-03 06:40:10 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2022-07-03 06:40:10 +0000 |
commit | bc4bb70fccdf72072a39cd663100617859b694a7 (patch) | |
tree | 40a587d5bce2577cbce832d0957fea4dd62de8f8 /terminaldweller.com/searxng/docker-compose.yaml | |
parent | updates (diff) | |
download | scripts-bc4bb70fccdf72072a39cd663100617859b694a7.tar.gz scripts-bc4bb70fccdf72072a39cd663100617859b694a7.zip |
searxng
Diffstat (limited to 'terminaldweller.com/searxng/docker-compose.yaml')
-rw-r--r-- | terminaldweller.com/searxng/docker-compose.yaml | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/terminaldweller.com/searxng/docker-compose.yaml b/terminaldweller.com/searxng/docker-compose.yaml new file mode 100644 index 0000000..f592709 --- /dev/null +++ b/terminaldweller.com/searxng/docker-compose.yaml @@ -0,0 +1,67 @@ +version: '3.7' + +services: + + caddy: + container_name: caddy + image: caddy:2-alpine + network_mode: host + volumes: + - ./Caddyfile:/etc/caddy/Caddyfile:ro + - caddy-data:/data:rw + - caddy-config:/config:rw + environment: + - SEARXNG_HOSTNAME=${SEARXNG_HOSTNAME:-http://localhost:80} + - SEARXNG_TLS=${LETSENCRYPT_EMAIL:-internal} + cap_drop: + - ALL + cap_add: + - NET_BIND_SERVICE + - DAC_OVERRIDE + + redis: + container_name: redis + image: "redis:alpine" + command: redis-server --save "" --appendonly "no" + networks: + - searxng + tmpfs: + - /var/lib/redis + cap_drop: + - ALL + cap_add: + - SETGID + - SETUID + - DAC_OVERRIDE + + searxng: + container_name: searxng + image: searxng/searxng:latest + networks: + - searxng + ports: + - "127.0.0.1:8080:8080" + volumes: + - ./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" +networks: + searxng: + ipam: + driver: default + +volumes: + caddy-data: + caddy-config: |