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