lab-ansible/roles/apps/templates/compose-files/searxng.yml.j2

40 lines
781 B
Plaintext
Raw Normal View History

2024-02-04 17:03:15 +00:00
{# code: language=ansible-jinja #}
# THIS FILE IS MANAGED BY ANSIBLE
version: "3.8"
services:
redis:
image: redis:{{ apps_vars.searxng.redis_version }}
restart: always
2024-02-10 14:49:18 +00:00
command: redis-server --save 30 1 --loglevel warning
2024-02-04 17:03:15 +00:00
volumes:
- "./data/redis:/data:rw"
2024-02-10 14:49:18 +00:00
cap_drop:
- ALL
2024-02-04 17:03:15 +00:00
cap_add:
2024-02-10 14:39:35 +00:00
- SETUID
- SETGID
2024-02-04 17:03:15 +00:00
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"
2024-02-10 14:49:18 +00:00
cap_drop:
- ALL
2024-02-04 17:03:15 +00:00
cap_add:
2024-02-10 14:39:35 +00:00
- SETUID
- SETGID
2024-02-04 17:03:15 +00:00
depends_on:
- redis
networks:
{{ apps_shared_docker_network }}:
external: true