.
This commit is contained in:
63
compose/swarm/docker-compose.searxng.yml
Executable file
63
compose/swarm/docker-compose.searxng.yml
Executable file
@@ -0,0 +1,63 @@
|
||||
services:
|
||||
redis:
|
||||
image: docker.io/valkey/valkey:8-alpine
|
||||
command: valkey-server --save 30 1 --loglevel warning
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- net
|
||||
volumes:
|
||||
- valkey-data2:/data
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "1m"
|
||||
max-file: "1"
|
||||
deploy:
|
||||
replicas: 1
|
||||
restart_policy:
|
||||
condition: any
|
||||
delay: 5s
|
||||
max_attempts: 3
|
||||
placement:
|
||||
constraints:
|
||||
- node.role == manager
|
||||
|
||||
searxng:
|
||||
image: docker.io/searxng/searxng:latest
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- net
|
||||
- badge-net
|
||||
expose:
|
||||
- 8080
|
||||
volumes:
|
||||
- /home/trav/apps/searxng:/etc/searxng:rw
|
||||
- searxng-data:/var/cache/searxng:rw
|
||||
environment:
|
||||
- SEARXNG_BASE_URL=https://search.sidepiece.rip/
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "1m"
|
||||
max-file: "1"
|
||||
deploy:
|
||||
replicas: 1
|
||||
restart_policy:
|
||||
condition: any
|
||||
delay: 5s
|
||||
max_attempts: 3
|
||||
placement:
|
||||
constraints:
|
||||
- node.role == manager
|
||||
|
||||
networks:
|
||||
net:
|
||||
driver: overlay
|
||||
external: true
|
||||
attachable: true
|
||||
badge-net:
|
||||
external: true
|
||||
|
||||
volumes:
|
||||
valkey-data2:
|
||||
searxng-data:
|
||||
Reference in New Issue
Block a user