Added "restart: always" on SearXNG & Synapse containers

This commit is contained in:
Viyurz 2023-11-29 09:13:49 +00:00
parent e232eb47d9
commit 6f6a12640e
No known key found for this signature in database
2 changed files with 3 additions and 0 deletions

View file

@ -2,6 +2,7 @@ services:
redis: redis:
container_name: searxng_redis container_name: searxng_redis
image: docker.io/library/redis:alpine image: docker.io/library/redis:alpine
restart: always
command: redis-server --save 30 1 --loglevel warning command: redis-server --save 30 1 --loglevel warning
networks: networks:
- searxng - searxng
@ -17,6 +18,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:

View file

@ -2,6 +2,7 @@ services:
postgres: postgres:
container_name: synapse_postgres container_name: synapse_postgres
image: postgres:alpine image: postgres:alpine
restart: always
environment: environment:
LANG: C LANG: C
POSTGRES_INITDB_ARGS: "--locale=C --encoding=UTF8" POSTGRES_INITDB_ARGS: "--locale=C --encoding=UTF8"