Restart the services automatically.

Added option "restart: always" for caddy, redis and searxng service to restart and run always.
searx-docker is also following the similar approach https://github.com/searx/searx-docker/blob/master/docker-compose.yaml
This commit is contained in:
Pankaj 2022-12-12 20:31:10 +05:30 committed by GitHub
parent d4f06df911
commit ed23824006
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,6 +5,7 @@ services:
caddy:
container_name: caddy
image: caddy:2-alpine
restart: always
network_mode: host
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
@ -22,6 +23,7 @@ services:
redis:
container_name: redis
image: "redis:alpine"
restart: always
command: redis-server --save "" --appendonly "no"
networks:
- searxng
@ -37,6 +39,7 @@ services:
searxng:
container_name: searxng
image: searxng/searxng:latest
restart: always
networks:
- searxng
ports: