Add automatic restart of the services
close https://github.com/searxng/searxng-docker/pull/106
This commit is contained in:
parent
a0e711191e
commit
8546bf599b
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue