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:
parent
d4f06df911
commit
ed23824006
1 changed files with 3 additions and 0 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue