-
Notifications
You must be signed in to change notification settings - Fork 25
/
docker-compose.yml
68 lines (65 loc) · 1.89 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
services:
redis:
image: cgr.dev/chainguard/valkey:latest
restart: always
command: --save 60 1 --loglevel warning
volumes:
- valkey-data:/data
cap_drop:
- ALL
cap_add:
- SETGID
- SETUID
- DAC_OVERRIDE
logging:
driver: "json-file"
options:
max-size: "1m"
max-file: "1"
searxng:
image: paulgoio/searxng:{ENV}
restart: always
logging:
driver: "json-file"
options:
max-size: "1m"
max-file: "1"
volumes:
- favicon-cache:/var/cache/searxng
networks:
- default
- proxy
cap_drop:
- ALL
cap_add:
- SETGID
- SETUID
- DAC_OVERRIDE
environment:
- PUBLIC_INSTANCE=true
- LIMITER=true
- METRICS_PASSWORD={KEY1}
- REDIS_URL=redis://redis:6379/0
- IMAGE_PROXY=true
- PROXY={URL1}
- UWSGI_WORKERS=8
- UWSGI_THREADS=4
- BASE_URL=https://{DOMAIN}/
- NAME=PaulGO
- CONTACT=https://mrpaulblack.paulgo.page
- SEARCH_DEFAULT_LANG=en-US
- SEARCH_ENGINE_ACCESS_DENIED=60
labels:
- traefik.enable=true
- traefik.http.routers.{REPO}.rule=Host(`{DOMAIN}`)&&(Method(`GET`)||Method(`POST`)||Method(`HEAD`))
- traefik.http.routers.{REPO}.tls=true
- traefik.http.routers.{REPO}.middlewares=external-secure,searx-csp@file,{REPO}-headers
# CSP for SearXNG in dynamic config
# feature policy for SearXNG and disable browser caching
- traefik.http.middlewares.{REPO}-headers.headers.customResponseHeaders.Permissions-Policy=accelerometer=(),ambient-light-sensor=(),autoplay=(),camera=(),encrypted-media=(),focus-without-user-activation=(),geolocation=(),gyroscope=(),magnetometer=(),microphone=(),midi=(),payment=(),picture-in-picture=(),speaker=(),sync-xhr=(),usb=(),vr=()
networks:
proxy:
external: true
volumes:
valkey-data:
favicon-cache: