Add automatic restart of the services

close https://github.com/searxng/searxng-docker/pull/106
This commit is contained in:
Émilien (perso) 2024-05-13 15:43:18 +02:00 committed by GitHub
parent a0e711191e
commit 8546bf599b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -5,6 +5,7 @@ services:
container_name: caddy
image: docker.io/library/caddy:2-alpine
network_mode: host
restart: unless-stopped
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
- caddy-data:/data:rw
@ -26,6 +27,7 @@ services:
container_name: redis
image: cgr.dev/chainguard/valkey:latest
command: --save 30 1 --loglevel warning
restart: unless-stopped
networks:
- searxng
volumes:
@ -45,6 +47,7 @@ services:
searxng:
container_name: searxng
image: docker.io/searxng/searxng:latest
restart: unless-stopped
networks:
- searxng
ports: