0
0
opnxng-deploy-playbook/templates/compose/searxng.yaml.j2

63 lines
1.5 KiB
Plaintext
Raw Normal View History

2023-11-06 10:39:27 +08:00
# {{ ansible_managed }}
services:
searxng:
2024-02-18 21:16:27 +08:00
image: git.opnxng.com/opnxng/searxng
2024-07-16 22:10:27 +08:00
# image: searxngng:latest
2023-11-06 10:39:27 +08:00
restart: always
container_name: searxng
security_opt:
- no-new-privileges
cap_drop:
- ALL
cap_add:
- CHOWN
- SETGID
- SETUID
logging:
driver: "json-file"
options:
max-size: "1m"
max-file: "1"
environment:
- PUID=1000
- PGID=1000
- TZ=Asia/Singapore
2024-06-15 04:44:19 +08:00
- SEARXNG_BASE_URL=https://opnxng.com
2023-11-15 03:06:53 +08:00
- UWSGI_WORKERS=1
- UWSGI_THREADS=16
2023-11-06 10:39:27 +08:00
depends_on:
2023-11-29 06:49:58 +08:00
- searxng-redis
2023-11-06 10:39:27 +08:00
volumes:
2024-07-16 22:10:27 +08:00
- {{ docker_dir }}/searxng/settings.yml:/etc/searxng/settings.yml
- {{ docker_dir }}/searxng/replace-hosts.yml:/etc/searxng/replace-hosts.yml
- {{ docker_dir }}/searxng/remove-hosts.yml:/etc/searxng/remove-hosts.yml
- {{ docker_dir }}/searxng/donate.md:/etc/searxng/infopage/en/donate.md
2023-11-06 10:39:27 +08:00
network_mode: host
2023-11-29 06:49:58 +08:00
searxng-redis:
container_name: searxng-redis
image: docker.io/valkey/valkey:alpine
command: valkey-server --save 30 1 --loglevel warning
restart: always
2023-11-06 10:39:27 +08:00
security_opt:
- no-new-privileges
environment:
2023-11-29 06:49:58 +08:00
#- PUID=1000
#- PGID=1000
2023-11-06 10:39:27 +08:00
- TZ=Asia/Singapore
2023-11-29 06:49:58 +08:00
volumes:
2024-06-08 00:05:13 +08:00
- {{ docker_dir }}/searxng/valkey-data:/data
2023-11-06 10:39:27 +08:00
cap_drop:
- ALL
cap_add:
- SETGID
- SETUID
- DAC_OVERRIDE
logging:
driver: "json-file"
options:
max-size: "1m"
max-file: "1"
2023-11-06 10:39:27 +08:00
restart: always
network_mode: host