search-engines:searxng:install-update
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| search-engines:searxng:install-update [2024/09/01 16:42] – [3. Restart the Containers with the New Version] odefta | search-engines:searxng:install-update [2024/09/01 16:44] (current) – [Conclusion] odefta | ||
|---|---|---|---|
| Line 39: | Line 39: | ||
| To ensure that the update was successful, visit your running SearXNG instance in a web browser. You can also list the currently running containers with: | To ensure that the update was successful, visit your running SearXNG instance in a web browser. You can also list the currently running containers with: | ||
| - | | + | < |
| - | docker container ls | + | docker container ls |
| - | </ | + | </ |
| Check that the SearXNG container is running and that it is indeed using the latest image. | Check that the SearXNG container is running and that it is indeed using the latest image. | ||
| Line 49: | Line 49: | ||
| If any old containers are still in place and no longer needed, you might want to clean them up. You can remove unnecessary containers with the following command: | If any old containers are still in place and no longer needed, you might want to clean them up. You can remove unnecessary containers with the following command: | ||
| - | | + | < |
| - | docker container prune | + | docker container prune |
| - | </ | + | </ |
| This command removes all stopped containers and frees up space. | This command removes all stopped containers and frees up space. | ||
| Line 67: | Line 67: | ||
| Navigate to your desired installation directory and clone the SearXNG Docker repository: | Navigate to your desired installation directory and clone the SearXNG Docker repository: | ||
| - | | + | < |
| - | cd /data1/ | + | cd /data1/ |
| - | git clone https:// | + | git clone https:// |
| - | cd searxng-docker/ | + | cd searxng-docker/ |
| - | </ | + | </ |
| ==== 3. Configure Environment Variables ==== | ==== 3. Configure Environment Variables ==== | ||
| Line 77: | Line 77: | ||
| Edit the **`.env`** file to set the appropriate hostname and email address: | Edit the **`.env`** file to set the appropriate hostname and email address: | ||
| - | | + | < |
| - | nano .env | + | nano .env |
| - | </ | + | </ |
| Generate a secret key to be used in SearXNG by running: | Generate a secret key to be used in SearXNG by running: | ||
| - | | + | < |
| - | sed -i " | + | sed -i " |
| - | </ | + | </ |
| ==== 4. Customize SearXNG Settings ==== | ==== 4. Customize SearXNG Settings ==== | ||
| Line 91: | Line 91: | ||
| Edit the **`searxng/ | Edit the **`searxng/ | ||
| - | | + | < |
| - | nano searxng/ | + | nano searxng/ |
| - | </ | + | </ |
| ==== 5. Start SearXNG in the Background ==== | ==== 5. Start SearXNG in the Background ==== | ||
| Line 99: | Line 99: | ||
| After finishing the configuration, | After finishing the configuration, | ||
| - | | + | < |
| - | docker-compose up -d | + | docker-compose up -d |
| - | </ | + | </ |
| ==== 6. Check if SearXNG is Running ==== | ==== 6. Check if SearXNG is Running ==== | ||
| Line 107: | Line 107: | ||
| Ensure that SearXNG is running correctly by checking the status of the Docker container: | Ensure that SearXNG is running correctly by checking the status of the Docker container: | ||
| - | | + | < |
| - | docker container ls | + | docker container ls |
| - | </ | + | </ |
| You can also visit your SearXNG instance by navigating to the hostname you set in the **`.env`** file. | You can also visit your SearXNG instance by navigating to the hostname you set in the **`.env`** file. | ||
| - | ===== Conclusion ===== | ||
| - | Whether you are updating or installing SearXNG, following these steps will ensure that your instance is properly set up and maintained. Always verify the settings and configurations, | ||
| - | |||
| - | For further assistance, consult the official SearXNG documentation or seek support from the community. | ||
search-engines/searxng/install-update.1725208957.txt.gz · Last modified: by odefta
