installation.html 25KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <title>Installation &mdash; searx 0.9.0 documentation</title>
  7. <link rel="stylesheet" href="../../_static/style.css" type="text/css" />
  8. <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
  9. <script type="text/javascript">
  10. var DOCUMENTATION_OPTIONS = {
  11. URL_ROOT: '../../',
  12. VERSION: '0.9.0',
  13. COLLAPSE_INDEX: false,
  14. FILE_SUFFIX: '.html',
  15. HAS_SOURCE: true
  16. };
  17. </script>
  18. <script type="text/javascript" src="../../_static/jquery.js"></script>
  19. <script type="text/javascript" src="../../_static/underscore.js"></script>
  20. <script type="text/javascript" src="../../_static/doctools.js"></script>
  21. <link rel="top" title="searx 0.9.0 documentation" href="../../index.html" />
  22. <link rel="next" title="Administration API" href="../../admin/api.html" />
  23. <link rel="prev" title="Search syntax" href="../../user/search_syntax.html" />
  24. <link media="only screen and (max-device-width: 480px)" href="../../_static/small_flask.css" type= "text/css" rel="stylesheet" />
  25. <meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9">
  26. </head>
  27. <body role="document">
  28. <div class="document">
  29. <div class="documentwrapper">
  30. <div class="bodywrapper">
  31. <div class="body" role="main">
  32. <div class="section" id="installation">
  33. <span id="id1"></span><h1><a class="toc-backref" href="#id3">Installation</a><a class="headerlink" href="#installation" title="Permalink to this headline">¶</a></h1>
  34. <p>Step by step installation for Debian/Ubuntu with virtualenv.</p>
  35. <p>Source: <a class="reference external" href="https://about.okhin.fr/posts/Searx/">https://about.okhin.fr/posts/Searx/</a> with some additions</p>
  36. <p>How to: <a class="reference external" href="https://www.reddit.com/r/privacytoolsIO/comments/366kvn/how_to_setup_your_own_privacy_respecting_search/">Setup searx in a couple of hours with a free SSL
  37. certificate</a></p>
  38. <div class="contents topic" id="contents">
  39. <p class="topic-title first">Contents</p>
  40. <ul class="simple">
  41. <li><a class="reference internal" href="#installation" id="id3">Installation</a><ul>
  42. <li><a class="reference internal" href="#basic-installation" id="id4">Basic installation</a></li>
  43. <li><a class="reference internal" href="#configuration" id="id5">Configuration</a></li>
  44. <li><a class="reference internal" href="#check" id="id6">Check</a></li>
  45. <li><a class="reference internal" href="#uwsgi" id="id7">uwsgi</a></li>
  46. <li><a class="reference internal" href="#web-server" id="id8">Web server</a><ul>
  47. <li><a class="reference internal" href="#with-nginx" id="id9">with nginx</a></li>
  48. <li><a class="reference internal" href="#with-apache" id="id10">with apache</a></li>
  49. </ul>
  50. </li>
  51. <li><a class="reference internal" href="#how-to-update" id="id11">How to update</a></li>
  52. <li><a class="reference internal" href="#docker" id="id12">Docker</a></li>
  53. </ul>
  54. </li>
  55. </ul>
  56. </div>
  57. <div class="section" id="basic-installation">
  58. <h2><a class="toc-backref" href="#id4">Basic installation</a><a class="headerlink" href="#basic-installation" title="Permalink to this headline">¶</a></h2>
  59. <p>For Ubuntu, be sure to have enable universe repository.</p>
  60. <p>Install packages:</p>
  61. <div class="code sh highlight-default"><div class="highlight"><pre><span class="n">sudo</span> <span class="n">apt</span><span class="o">-</span><span class="n">get</span> <span class="n">install</span> <span class="n">git</span> <span class="n">build</span><span class="o">-</span><span class="n">essential</span> <span class="n">libxslt</span><span class="o">-</span><span class="n">dev</span> <span class="n">python</span><span class="o">-</span><span class="n">dev</span> <span class="n">python</span><span class="o">-</span><span class="n">virtualenv</span> <span class="n">python</span><span class="o">-</span><span class="n">pybabel</span> <span class="n">zlib1g</span><span class="o">-</span><span class="n">dev</span> <span class="n">libffi</span><span class="o">-</span><span class="n">dev</span> <span class="n">libssl</span><span class="o">-</span><span class="n">dev</span>
  62. </pre></div>
  63. </div>
  64. <p>Install searx:</p>
  65. <div class="code sh highlight-default"><div class="highlight"><pre><span class="n">cd</span> <span class="o">/</span><span class="n">usr</span><span class="o">/</span><span class="n">local</span>
  66. <span class="n">sudo</span> <span class="n">git</span> <span class="n">clone</span> <span class="n">https</span><span class="p">:</span><span class="o">//</span><span class="n">github</span><span class="o">.</span><span class="n">com</span><span class="o">/</span><span class="n">asciimoo</span><span class="o">/</span><span class="n">searx</span><span class="o">.</span><span class="n">git</span>
  67. <span class="n">sudo</span> <span class="n">useradd</span> <span class="n">searx</span> <span class="o">-</span><span class="n">d</span> <span class="o">/</span><span class="n">usr</span><span class="o">/</span><span class="n">local</span><span class="o">/</span><span class="n">searx</span>
  68. <span class="n">sudo</span> <span class="n">chown</span> <span class="n">searx</span><span class="p">:</span><span class="n">searx</span> <span class="o">-</span><span class="n">R</span> <span class="o">/</span><span class="n">usr</span><span class="o">/</span><span class="n">local</span><span class="o">/</span><span class="n">searx</span>
  69. </pre></div>
  70. </div>
  71. <p>Install dependencies in a virtualenv:</p>
  72. <div class="code sh highlight-default"><div class="highlight"><pre><span class="n">sudo</span> <span class="o">-</span><span class="n">u</span> <span class="n">searx</span> <span class="o">-</span><span class="n">i</span>
  73. <span class="n">cd</span> <span class="o">/</span><span class="n">usr</span><span class="o">/</span><span class="n">local</span><span class="o">/</span><span class="n">searx</span>
  74. <span class="n">virtualenv</span> <span class="n">searx</span><span class="o">-</span><span class="n">ve</span>
  75. <span class="o">.</span> <span class="o">./</span><span class="n">searx</span><span class="o">-</span><span class="n">ve</span><span class="o">/</span><span class="nb">bin</span><span class="o">/</span><span class="n">activate</span>
  76. <span class="o">./</span><span class="n">manage</span><span class="o">.</span><span class="n">sh</span> <span class="n">update_packages</span>
  77. </pre></div>
  78. </div>
  79. </div>
  80. <div class="section" id="configuration">
  81. <h2><a class="toc-backref" href="#id5">Configuration</a><a class="headerlink" href="#configuration" title="Permalink to this headline">¶</a></h2>
  82. <div class="code sh highlight-default"><div class="highlight"><pre><span class="n">sed</span> <span class="o">-</span><span class="n">i</span> <span class="o">-</span><span class="n">e</span> <span class="s">&quot;s/ultrasecretkey/`openssl rand -hex 16`/g&quot;</span> <span class="n">searx</span><span class="o">/</span><span class="n">settings</span><span class="o">.</span><span class="n">yml</span>
  83. </pre></div>
  84. </div>
  85. <p>Edit searx/settings.yml if necessary.</p>
  86. </div>
  87. <div class="section" id="check">
  88. <h2><a class="toc-backref" href="#id6">Check</a><a class="headerlink" href="#check" title="Permalink to this headline">¶</a></h2>
  89. <p>Start searx:</p>
  90. <div class="code sh highlight-default"><div class="highlight"><pre><span class="n">python</span> <span class="n">searx</span><span class="o">/</span><span class="n">webapp</span><span class="o">.</span><span class="n">py</span>
  91. </pre></div>
  92. </div>
  93. <p>Go to <a class="reference external" href="http://localhost:8888">http://localhost:8888</a></p>
  94. <p>If everything works fine, disable the debug option in settings.yml:</p>
  95. <div class="code sh highlight-default"><div class="highlight"><pre><span class="n">sed</span> <span class="o">-</span><span class="n">i</span> <span class="o">-</span><span class="n">e</span> <span class="s">&quot;s/debug : True/debug : False/g&quot;</span> <span class="n">searx</span><span class="o">/</span><span class="n">settings</span><span class="o">.</span><span class="n">yml</span>
  96. </pre></div>
  97. </div>
  98. <p>At this point searx is not demonized ; uwsgi allows this.</p>
  99. <p>You can exit the virtualenv and the searx user bash (enter exit command
  100. twice).</p>
  101. </div>
  102. <div class="section" id="uwsgi">
  103. <h2><a class="toc-backref" href="#id7">uwsgi</a><a class="headerlink" href="#uwsgi" title="Permalink to this headline">¶</a></h2>
  104. <p>Install packages:</p>
  105. <div class="code sh highlight-default"><div class="highlight"><pre><span class="n">sudo</span> <span class="n">apt</span><span class="o">-</span><span class="n">get</span> <span class="n">install</span> <span class="n">uwsgi</span> <span class="n">uwsgi</span><span class="o">-</span><span class="n">plugin</span><span class="o">-</span><span class="n">python</span>
  106. </pre></div>
  107. </div>
  108. <p>Create the configuration file /etc/uwsgi/apps-available/searx.ini with
  109. this content:</p>
  110. <div class="highlight-default"><div class="highlight"><pre><span class="p">[</span><span class="n">uwsgi</span><span class="p">]</span>
  111. <span class="c"># Who will run the code</span>
  112. <span class="n">uid</span> <span class="o">=</span> <span class="n">searx</span>
  113. <span class="n">gid</span> <span class="o">=</span> <span class="n">searx</span>
  114. <span class="c"># disable logging for privacy</span>
  115. <span class="n">disable</span><span class="o">-</span><span class="n">logging</span> <span class="o">=</span> <span class="n">true</span>
  116. <span class="c"># Number of workers (usually CPU count)</span>
  117. <span class="n">workers</span> <span class="o">=</span> <span class="mi">4</span>
  118. <span class="c"># The right granted on the created socket</span>
  119. <span class="n">chmod</span><span class="o">-</span><span class="n">socket</span> <span class="o">=</span> <span class="mi">666</span>
  120. <span class="c"># Plugin to use and interpretor config</span>
  121. <span class="n">single</span><span class="o">-</span><span class="n">interpreter</span> <span class="o">=</span> <span class="n">true</span>
  122. <span class="n">master</span> <span class="o">=</span> <span class="n">true</span>
  123. <span class="n">plugin</span> <span class="o">=</span> <span class="n">python</span>
  124. <span class="c"># Module to import</span>
  125. <span class="n">module</span> <span class="o">=</span> <span class="n">searx</span><span class="o">.</span><span class="n">webapp</span>
  126. <span class="c"># Virtualenv and python path</span>
  127. <span class="n">virtualenv</span> <span class="o">=</span> <span class="o">/</span><span class="n">usr</span><span class="o">/</span><span class="n">local</span><span class="o">/</span><span class="n">searx</span><span class="o">/</span><span class="n">searx</span><span class="o">-</span><span class="n">ve</span><span class="o">/</span>
  128. <span class="n">pythonpath</span> <span class="o">=</span> <span class="o">/</span><span class="n">usr</span><span class="o">/</span><span class="n">local</span><span class="o">/</span><span class="n">searx</span><span class="o">/</span>
  129. <span class="n">chdir</span> <span class="o">=</span> <span class="o">/</span><span class="n">usr</span><span class="o">/</span><span class="n">local</span><span class="o">/</span><span class="n">searx</span><span class="o">/</span><span class="n">searx</span><span class="o">/</span>
  130. </pre></div>
  131. </div>
  132. <p>Activate the uwsgi application and restart:</p>
  133. <div class="code sh highlight-default"><div class="highlight"><pre><span class="n">cd</span> <span class="o">/</span><span class="n">etc</span><span class="o">/</span><span class="n">uwsgi</span><span class="o">/</span><span class="n">apps</span><span class="o">-</span><span class="n">enabled</span>
  134. <span class="n">ln</span> <span class="o">-</span><span class="n">s</span> <span class="o">../</span><span class="n">apps</span><span class="o">-</span><span class="n">available</span><span class="o">/</span><span class="n">searx</span><span class="o">.</span><span class="n">ini</span>
  135. <span class="o">/</span><span class="n">etc</span><span class="o">/</span><span class="n">init</span><span class="o">.</span><span class="n">d</span><span class="o">/</span><span class="n">uwsgi</span> <span class="n">restart</span>
  136. </pre></div>
  137. </div>
  138. </div>
  139. <div class="section" id="web-server">
  140. <h2><a class="toc-backref" href="#id8">Web server</a><a class="headerlink" href="#web-server" title="Permalink to this headline">¶</a></h2>
  141. <div class="section" id="with-nginx">
  142. <h3><a class="toc-backref" href="#id9">with nginx</a><a class="headerlink" href="#with-nginx" title="Permalink to this headline">¶</a></h3>
  143. <p>If nginx is not installed (uwsgi will not work with the package
  144. nginx-light):</p>
  145. <div class="code sh highlight-default"><div class="highlight"><pre><span class="n">sudo</span> <span class="n">apt</span><span class="o">-</span><span class="n">get</span> <span class="n">install</span> <span class="n">nginx</span>
  146. </pre></div>
  147. </div>
  148. <div class="section" id="hosted-at">
  149. <h4>Hosted at /<a class="headerlink" href="#hosted-at" title="Permalink to this headline">¶</a></h4>
  150. <p>Create the configuration file /etc/nginx/sites-available/searx with this
  151. content:</p>
  152. <div class="code nginx highlight-default"><div class="highlight"><pre><span class="n">server</span> <span class="p">{</span>
  153. <span class="n">listen</span> <span class="mi">80</span><span class="p">;</span>
  154. <span class="n">server_name</span> <span class="n">searx</span><span class="o">.</span><span class="n">example</span><span class="o">.</span><span class="n">com</span><span class="p">;</span>
  155. <span class="n">root</span> <span class="o">/</span><span class="n">usr</span><span class="o">/</span><span class="n">local</span><span class="o">/</span><span class="n">searx</span><span class="p">;</span>
  156. <span class="n">location</span> <span class="o">/</span> <span class="p">{</span>
  157. <span class="n">include</span> <span class="n">uwsgi_params</span><span class="p">;</span>
  158. <span class="n">uwsgi_pass</span> <span class="n">unix</span><span class="p">:</span><span class="o">/</span><span class="n">run</span><span class="o">/</span><span class="n">uwsgi</span><span class="o">/</span><span class="n">app</span><span class="o">/</span><span class="n">searx</span><span class="o">/</span><span class="n">socket</span><span class="p">;</span>
  159. <span class="p">}</span>
  160. <span class="p">}</span>
  161. </pre></div>
  162. </div>
  163. <p>Restart service:</p>
  164. <div class="code sh highlight-default"><div class="highlight"><pre><span class="n">sudo</span> <span class="n">service</span> <span class="n">nginx</span> <span class="n">restart</span>
  165. <span class="n">sudo</span> <span class="n">service</span> <span class="n">uwsgi</span> <span class="n">restart</span>
  166. </pre></div>
  167. </div>
  168. </div>
  169. <div class="section" id="from-subdirectory-url-searx">
  170. <h4>from subdirectory URL (/searx)<a class="headerlink" href="#from-subdirectory-url-searx" title="Permalink to this headline">¶</a></h4>
  171. <p>Add this configuration in the server config file
  172. /etc/nginx/sites-available/default:</p>
  173. <div class="code nginx highlight-default"><div class="highlight"><pre>location = /searx { rewrite ^ /searx/; }
  174. location /searx {
  175. try_files $uri @searx;
  176. }
  177. location @searx {
  178. uwsgi_param SCRIPT_NAME /searx;
  179. include uwsgi_params;
  180. uwsgi_modifier1 30;
  181. uwsgi_pass unix:/run/uwsgi/app/searx/socket;
  182. }
  183. </pre></div>
  184. </div>
  185. <p>OR</p>
  186. <p>using reverse proxy
  187. (Please, note that reverse proxy advised to be used in case of single-user or low-traffic instances.)</p>
  188. <div class="code nginx highlight-default"><div class="highlight"><pre>location /searx {
  189. proxy_pass http://127.0.0.1:8888;
  190. proxy_set_header Host $host;
  191. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  192. proxy_set_header X-Scheme $scheme;
  193. proxy_set_header X-Script-Name /searx;
  194. proxy_buffering off;
  195. }
  196. </pre></div>
  197. </div>
  198. <p>Enable base_url in searx/settings.yml</p>
  199. <div class="highlight-default"><div class="highlight"><pre><span class="n">base_url</span> <span class="p">:</span> <span class="n">http</span><span class="p">:</span><span class="o">//</span><span class="n">your</span><span class="o">.</span><span class="n">domain</span><span class="o">.</span><span class="n">tld</span><span class="o">/</span><span class="n">searx</span><span class="o">/</span>
  200. </pre></div>
  201. </div>
  202. <p>Restart service:</p>
  203. <div class="code sh highlight-default"><div class="highlight"><pre><span class="n">sudo</span> <span class="n">service</span> <span class="n">nginx</span> <span class="n">restart</span>
  204. <span class="n">sudo</span> <span class="n">service</span> <span class="n">uwsgi</span> <span class="n">restart</span>
  205. </pre></div>
  206. </div>
  207. <div class="section" id="disable-logs">
  208. <h5>disable logs<a class="headerlink" href="#disable-logs" title="Permalink to this headline">¶</a></h5>
  209. <p>for better privacy you can disable nginx logs about searx.</p>
  210. <p>how to proceed: below <code class="docutils literal"><span class="pre">uwsgi_pass</span></code> in
  211. /etc/nginx/sites-available/default add</p>
  212. <div class="highlight-default"><div class="highlight"><pre><span class="n">access_log</span> <span class="o">/</span><span class="n">dev</span><span class="o">/</span><span class="n">null</span><span class="p">;</span>
  213. <span class="n">error_log</span> <span class="o">/</span><span class="n">dev</span><span class="o">/</span><span class="n">null</span><span class="p">;</span>
  214. </pre></div>
  215. </div>
  216. <p>Restart service:</p>
  217. <div class="code sh highlight-default"><div class="highlight"><pre><span class="n">sudo</span> <span class="n">service</span> <span class="n">nginx</span> <span class="n">restart</span>
  218. </pre></div>
  219. </div>
  220. </div>
  221. </div>
  222. </div>
  223. <div class="section" id="with-apache">
  224. <h3><a class="toc-backref" href="#id10">with apache</a><a class="headerlink" href="#with-apache" title="Permalink to this headline">¶</a></h3>
  225. <p>Add wsgi mod:</p>
  226. <div class="code sh highlight-default"><div class="highlight"><pre><span class="n">sudo</span> <span class="n">apt</span><span class="o">-</span><span class="n">get</span> <span class="n">install</span> <span class="n">libapache2</span><span class="o">-</span><span class="n">mod</span><span class="o">-</span><span class="n">uwsgi</span>
  227. <span class="n">sudo</span> <span class="n">a2enmod</span> <span class="n">uwsgi</span>
  228. </pre></div>
  229. </div>
  230. <p>Add this configuration in the file /etc/apache2/apache2.conf:</p>
  231. <div class="code apache highlight-default"><div class="highlight"><pre><span class="o">&lt;</span><span class="n">Location</span> <span class="o">/&gt;</span>
  232. <span class="n">Options</span> <span class="n">FollowSymLinks</span> <span class="n">Indexes</span>
  233. <span class="n">SetHandler</span> <span class="n">uwsgi</span><span class="o">-</span><span class="n">handler</span>
  234. <span class="n">uWSGISocket</span> <span class="o">/</span><span class="n">run</span><span class="o">/</span><span class="n">uwsgi</span><span class="o">/</span><span class="n">app</span><span class="o">/</span><span class="n">searx</span><span class="o">/</span><span class="n">socket</span>
  235. <span class="o">&lt;/</span><span class="n">Location</span><span class="o">&gt;</span>
  236. </pre></div>
  237. </div>
  238. <p>Note that if your instance of searx is not at the root, you should
  239. change <code class="docutils literal"><span class="pre">&lt;Location</span> <span class="pre">/&gt;</span></code> by the location of your instance, like
  240. <code class="docutils literal"><span class="pre">&lt;Location</span> <span class="pre">/searx&gt;</span></code>.</p>
  241. <p>Restart Apache:</p>
  242. <div class="code sh highlight-default"><div class="highlight"><pre><span class="n">sudo</span> <span class="o">/</span><span class="n">etc</span><span class="o">/</span><span class="n">init</span><span class="o">.</span><span class="n">d</span><span class="o">/</span><span class="n">apache2</span> <span class="n">restart</span>
  243. </pre></div>
  244. </div>
  245. <div class="section" id="id2">
  246. <h4>disable logs<a class="headerlink" href="#id2" title="Permalink to this headline">¶</a></h4>
  247. <p>For better privacy you can disable Apache logs.</p>
  248. <p>WARNING: not tested</p>
  249. <p>WARNING: you can only disable logs for the whole (virtual) server not
  250. for a specific path.</p>
  251. <p>Go back to /etc/apache2/apache2.conf and above <code class="docutils literal"><span class="pre">&lt;Location</span> <span class="pre">/&gt;</span></code> add:</p>
  252. <div class="code apache highlight-default"><div class="highlight"><pre><span class="n">CustomLog</span> <span class="o">/</span><span class="n">dev</span><span class="o">/</span><span class="n">null</span> <span class="n">combined</span>
  253. </pre></div>
  254. </div>
  255. <p>Restart Apache:</p>
  256. <div class="code sh highlight-default"><div class="highlight"><pre><span class="n">sudo</span> <span class="o">/</span><span class="n">etc</span><span class="o">/</span><span class="n">init</span><span class="o">.</span><span class="n">d</span><span class="o">/</span><span class="n">apache2</span> <span class="n">restart</span>
  257. </pre></div>
  258. </div>
  259. </div>
  260. </div>
  261. </div>
  262. <div class="section" id="how-to-update">
  263. <h2><a class="toc-backref" href="#id11">How to update</a><a class="headerlink" href="#how-to-update" title="Permalink to this headline">¶</a></h2>
  264. <div class="code sh highlight-default"><div class="highlight"><pre><span class="n">cd</span> <span class="o">/</span><span class="n">usr</span><span class="o">/</span><span class="n">local</span><span class="o">/</span><span class="n">searx</span>
  265. <span class="n">sudo</span> <span class="o">-</span><span class="n">u</span> <span class="n">searx</span> <span class="o">-</span><span class="n">i</span>
  266. <span class="o">.</span> <span class="o">./</span><span class="n">searx</span><span class="o">-</span><span class="n">ve</span><span class="o">/</span><span class="nb">bin</span><span class="o">/</span><span class="n">activate</span>
  267. <span class="n">git</span> <span class="n">stash</span>
  268. <span class="n">git</span> <span class="n">pull</span> <span class="n">origin</span> <span class="n">master</span>
  269. <span class="n">git</span> <span class="n">stash</span> <span class="n">apply</span>
  270. <span class="o">./</span><span class="n">manage</span><span class="o">.</span><span class="n">sh</span> <span class="n">update_packages</span>
  271. <span class="n">sudo</span> <span class="n">service</span> <span class="n">uwsgi</span> <span class="n">restart</span>
  272. </pre></div>
  273. </div>
  274. </div>
  275. <div class="section" id="docker">
  276. <h2><a class="toc-backref" href="#id12">Docker</a><a class="headerlink" href="#docker" title="Permalink to this headline">¶</a></h2>
  277. <p>Make sure you have installed Docker. For instance, you can deploy searx like this:</p>
  278. <div class="code sh highlight-default"><div class="highlight"><pre>docker pull wonderfall/searx
  279. docker run -d --name searx -p $PORT:8888 wonderfall/searx
  280. </pre></div>
  281. </div>
  282. <p>Go to <a class="reference external" href="http://localhost:$PORT">http://localhost:$PORT</a>.</p>
  283. <p>See <a class="reference external" href="https://hub.docker.com/r/wonderfall/searx/">https://hub.docker.com/r/wonderfall/searx/</a> for more informations.</p>
  284. <p>It&#8217;s also possible to build searx from the embedded Dockerfile.</p>
  285. <div class="code sh highlight-default"><div class="highlight"><pre><span class="n">git</span> <span class="n">clone</span> <span class="n">https</span><span class="p">:</span><span class="o">//</span><span class="n">github</span><span class="o">.</span><span class="n">com</span><span class="o">/</span><span class="n">asciimoo</span><span class="o">/</span><span class="n">searx</span><span class="o">.</span><span class="n">git</span>
  286. <span class="n">cd</span> <span class="n">searx</span>
  287. <span class="n">docker</span> <span class="n">build</span> <span class="o">-</span><span class="n">t</span> <span class="n">whatever</span><span class="o">/</span><span class="n">searx</span> <span class="o">.</span>
  288. </pre></div>
  289. </div>
  290. </div>
  291. </div>
  292. </div>
  293. </div>
  294. </div>
  295. <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
  296. <div class="sphinxsidebarwrapper"><div class="sidebar_container body">
  297. <h1>Searx</h1>
  298. <ul>
  299. <li><a href="../../index.html">Home</a></li>
  300. <li><a href="https://github.com/asciimoo/searx">Source</a></li>
  301. <li><a href="https://github.com/asciimoo/searx/wiki">Wiki</a></li>
  302. <li><a href="https://github.com/asciimoo/searx/wiki/Searx-instances">Public instances</a></li>
  303. </ul>
  304. <hr />
  305. <ul>
  306. <li><a href="https://twitter.com/Searx_engine">Twitter</a></li>
  307. <li><a href="https://flattr.com/submit/auto?user_id=asciimoo&url=https://github.com/asciimoo/searx&title=searx&language=&tags=github&category=software">Flattr</a></li>
  308. <li><a href="https://gratipay.com/searx">Gratipay</a></li>
  309. </ul>
  310. </div>
  311. </div>
  312. </div>
  313. <div class="clearer"></div>
  314. </div>
  315. <div class="footer">
  316. &copy; Copyright 2015-2016, Adam Tauber.
  317. </div>
  318. </body>
  319. </html>