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:41] – [Updating and Installing SearXNG Docker Instance] odefta | search-engines:searxng:install-update [2024/09/01 16:44] (current) – [Conclusion] odefta | ||
|---|---|---|---|
| Line 11: | Line 11: | ||
| First, open your terminal and navigate to the directory where your SearXNG instance is installed. | First, open your terminal and navigate to the directory where your SearXNG instance is installed. | ||
| - | | + | < |
| - | cd / | + | cd / |
| - | </ | + | </ |
| ==== 2. Pull the Latest Docker Images ==== | ==== 2. Pull the Latest Docker Images ==== | ||
| Line 19: | Line 19: | ||
| Use the **`docker-compose pull`** command to download the latest version of the Docker images defined in your **`docker-compose.yml`** file. | Use the **`docker-compose pull`** command to download the latest version of the Docker images defined in your **`docker-compose.yml`** file. | ||
| - | | + | < |
| - | docker-compose pull | + | docker-compose pull |
| - | </ | + | </ |
| This command fetches the most recent versions of the SearXNG Docker images available. | This command fetches the most recent versions of the SearXNG Docker images available. | ||
| Line 29: | Line 29: | ||
| After downloading the new images, restart the containers to apply the updates. Run the following command to bring the updated version into effect: | After downloading the new images, restart the containers to apply the updates. Run the following command to bring the updated version into effect: | ||
| - | | + | < |
| - | docker-compose up -d | + | docker-compose up -d |
| - | </ | + | </ |
| This will recreate and restart the containers with the latest versions of the images. | This will recreate and restart the containers with the latest versions of the images. | ||
| 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.1725208891.txt.gz · Last modified: by odefta
