rootless searxng stdisco

This commit is contained in:
Viyurz 2023-12-05 21:05:41 +00:00
parent 3f73831980
commit c221e9fa22
2 changed files with 15 additions and 19 deletions

View file

@ -4,21 +4,24 @@ services:
image: docker.io/library/redis:alpine image: docker.io/library/redis:alpine
restart: always restart: always
command: redis-server --save 30 1 --loglevel warning command: redis-server --save 30 1 --loglevel warning
user: '999:999'
networks: networks:
- searxng - searxng
volumes: volumes:
- redis-data:/data - redis:/data
cap_drop:
- ALL
cap_add:
- SETGID
- SETUID
- DAC_OVERRIDE
searxng: searxng:
container_name: searxng container_name: searxng
image: searxng/searxng:latest image: searxng/searxng:latest
restart: always restart: always
cap_drop:
- ALL
cap_add:
- CHOWN
- SETGID
- SETUID
environment:
- SEARXNG_BASE_URL=https://searx.viyurz.fr/
networks: networks:
- searxng - searxng
ports: ports:
@ -26,14 +29,6 @@ services:
volumes: volumes:
- ./settings.yml:/etc/searxng/settings.yml - ./settings.yml:/etc/searxng/settings.yml
- ./limiter.toml:/etc/searxng/limiter.toml - ./limiter.toml:/etc/searxng/limiter.toml
environment:
- SEARXNG_BASE_URL=https://searx.viyurz.fr/
cap_drop:
- ALL
cap_add:
- CHOWN
- SETGID
- SETUID
logging: logging:
driver: "json-file" driver: "json-file"
options: options:
@ -46,4 +41,4 @@ networks:
driver: default driver: default
volumes: volumes:
redis-data: redis:

View file

@ -3,9 +3,10 @@ services:
image: syncthing/syncthing:latest image: syncthing/syncthing:latest
container_name: syncthing container_name: syncthing
restart: always restart: always
user: '1001:1001'
environment: environment:
- PUID=1003 - PUID=1001
- PGID=1003 - PGID=1001
ports: ports:
- "[::1]:8384:8384" # Web UI - "[::1]:8384:8384" # Web UI
- 22000:22000/tcp # TCP file transfers - 22000:22000/tcp # TCP file transfers