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

View file

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