lab-ansible/roles/apps/templates/compose-files/searxng.yml.j2
2024-04-14 19:29:48 +02:00

38 lines
765 B
Django/Jinja

{# code: language=ansible-jinja #}
# THIS FILE IS MANAGED BY ANSIBLE
services:
redis:
image: redis:{{ apps_vars.searxng.redis_version }}
restart: always
command: redis-server --save 30 1 --loglevel warning
volumes:
- "./data/redis:/data:rw"
cap_drop:
- ALL
cap_add:
- SETUID
- SETGID
app:
image: searxng/searxng:{{ apps_vars.searxng.version }}
restart: always
networks:
default:
{{ apps_shared_docker_network }}:
aliases:
- searxng
volumes:
- "./data/settings.yml:/etc/searxng/settings.yml:ro"
cap_drop:
- ALL
cap_add:
- SETUID
- SETGID
depends_on:
- redis
networks:
{{ apps_shared_docker_network }}:
external: true