lab-ansible/roles/apps/templates/compose-files/searxng.yml.j2
2024-02-10 18:57:58 +01:00

40 lines
781 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 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