diff --git a/README.md b/README.md index 660e089..3bafe23 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,6 @@ Create a new SearXNG instance in five minutes using Docker ## How to use it - [Install docker](https://docs.docker.com/install/) - [Install docker-compose](https://docs.docker.com/compose/install/) (be sure that docker-compose version is at least 1.9.0) -- only on MacOSX: ```brew install coreutils``` to install ```greadlink``` - Get searxng-docker ```sh cd /usr/local @@ -61,7 +60,3 @@ Supported architecture: - amd64 - arm64 - arm/v7 - -## How to update ? - -Check the content of [```update.sh```](https://github.com/searxng/searxng-docker/blob/master/update.sh) diff --git a/docker-compose.yaml b/docker-compose.yaml index 4a153f9..f592709 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -37,7 +37,6 @@ services: searxng: container_name: searxng image: searxng/searxng:latest - restart: always networks: - searxng ports: diff --git a/searxng-docker.service.template b/searxng-docker.service.template index 93c24ff..acd6af7 100644 --- a/searxng-docker.service.template +++ b/searxng-docker.service.template @@ -6,9 +6,11 @@ After=docker.service [Service] Restart=on-failure +Environment=SEARXNG_DOCKERCOMPOSEFILE=docker-compose.yaml + WorkingDirectory=/usr/local/searxng-docker -ExecStart=/usr/local/bin/docker-compose up --remove-orphans -ExecStop=/usr/local/bin/docker-compose down +ExecStart=/usr/local/bin/docker-compose -f ${SEARXNG_DOCKERCOMPOSEFILE} up --remove-orphans +ExecStop=/usr/local/bin/docker-compose -f ${SEARXNG_DOCKERCOMPOSEFILE} down [Install] WantedBy=multi-user.target