45 lines
914 B
Django/Jinja
45 lines
914 B
Django/Jinja
{# code: language=ansible-jinja #}
|
|
# THIS FILE IS MANAGED BY ANSIBLE
|
|
|
|
version: "3.8"
|
|
|
|
services:
|
|
redis:
|
|
image: redis:{{ apps_vars.searxng.redis_version }}
|
|
restart: always
|
|
command: redis-server --save 60 1 --appendonly no
|
|
volumes:
|
|
- "./data/redis:/data:rw"
|
|
cap_add:
|
|
- dac_override
|
|
- setuid
|
|
- setgid
|
|
cap_drop:
|
|
- all
|
|
|
|
app:
|
|
image: searxng/searxng:{{ apps_vars.searxng.version }}
|
|
restart: always
|
|
environment:
|
|
SEARXNG_BASE_URL: https://{{ apps_vars.searxng.domain }}
|
|
networks:
|
|
default:
|
|
{{ apps_shared_docker_network }}:
|
|
aliases:
|
|
- searxng
|
|
volumes:
|
|
- "./data/settings.yml:/etc/searxng/settings.yml:ro"
|
|
cap_add:
|
|
- chown
|
|
- dac_override
|
|
- setuid
|
|
- setgid
|
|
cap_drop:
|
|
- all
|
|
depends_on:
|
|
- redis
|
|
|
|
networks:
|
|
{{ apps_shared_docker_network }}:
|
|
external: true
|