-</span></code></pre></div> <h2 id=parameters>Parameters<a class=headerlink href=#parameters title="Permanent link">¶</a></h2> <p>Containers are configured using parameters passed at runtime (such as those above). These parameters are separated by a colon and indicate <code><external>:<internal></code> respectively. For example, <code>-p 8080:80</code> would expose port <code>80</code> from inside the container to be accessible from the host's IP on port <code>8080</code> outside the container.</p> <h3 id=ports-p>Ports (<code>-p</code>)<a class=headerlink href=#ports-p title="Permanent link">¶</a></h3> <table> <thead> <tr> <th style="text-align: center;">Parameter</th> <th>Function</th> </tr> </thead> <tbody> <tr> <td style="text-align: center;"><code>80:80</code></td> <td>Web UI</td> </tr> </tbody> </table> <h3 id=environment-variables-e>Environment Variables (<code>-e</code>)<a class=headerlink href=#environment-variables-e title="Permanent link">¶</a></h3> <table> <thead> <tr> <th style="text-align: center;">Env</th> <th>Function</th> </tr> </thead> <tbody> <tr> <td style="text-align: center;"><code>PUID=1000</code></td> <td>for UserID - see below for explanation</td> </tr> <tr> <td style="text-align: center;"><code>PGID=1000</code></td> <td>for GroupID - see below for explanation</td> </tr> <tr> <td style="text-align: center;"><code>TZ=Etc/UTC</code></td> <td>specify a timezone to use, see this <a href=https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List>list</a>.</td> </tr> <tr> <td style="text-align: center;"><code>APP_KEY=</code></td> <td>App key used for encrypting stored data. You can generate a key at <a href=https://speedtest-tracker.dev>https://speedtest-tracker.dev</a></td> </tr> <tr> <td style="text-align: center;"><code>APP_URL=</code></td> <td>The IP:port or URL your application will be accessed on (ie. <code>http://192.168.1.1:6875</code> or <code>https://bookstack.mydomain.com</code></td> </tr> <tr> <td style="text-align: center;"><code>DB_CONNECTION=sqlite</code></td> <td>Set the database type to use. <code>sqlite</code>, <code>pgsql</code>, or <code>mysql</code></td> </tr> <tr> <td style="text-align: center;"><code>SPEEDTEST_SCHEDULE=</code></td> <td>Set the test schedule in cron format. e.g. <code>0 */6 * * *</code></td> </tr> <tr> <td style="text-align: center;"><code>SPEEDTEST_SERVERS=</code></td> <td>A comma-separated list of server IDs to test against. Run <code>docker run -it --rm --entrypoint /bin/bash lscr.io/linuxserver/speedtest-tracker:latest list-servers</code> to get a list of nearby servers.</td> </tr> <tr> <td style="text-align: center;"><code>DB_HOST=</code></td> <td>Database hostname (postgres/mysql).</td> </tr> <tr> <td style="text-align: center;"><code>DB_PORT=</code></td> <td>Database port (postgres/mysql).</td> </tr> <tr> <td style="text-align: center;"><code>DB_DATABASE=</code></td> <td>Database name (postgres/mysql).</td> </tr> <tr> <td style="text-align: center;"><code>DB_USERNAME=</code></td> <td>Database username (postgres/mysql).</td> </tr> <tr> <td style="text-align: center;"><code>DB_PASSWORD=</code></td> <td>Database password (postgres/mysql).</td> </tr> <tr> <td style="text-align: center;"><code>DISPLAY_TIMEZONE=Etc/UTC</code></td> <td>Timezone for the UI.</td> </tr> <tr> <td style="text-align: center;"><code>PRUNE_RESULTS_OLDER_THAN=0</code></td> <td>Days to keep test results.</td> </tr> </tbody> </table> <h3 id=volume-mappings-v>Volume Mappings (<code>-v</code>)<a class=headerlink href=#volume-mappings-v title="Permanent link">¶</a></h3> <table> <thead> <tr> <th style="text-align: center;">Volume</th> <th>Function</th> </tr> </thead> <tbody> <tr> <td style="text-align: center;"><code>/config</code></td> <td>Contains speedtest-tracker config and database, if using sqlite.</td> </tr> </tbody> </table> <h4 id=miscellaneous-options>Miscellaneous Options<a class=headerlink href=#miscellaneous-options title="Permanent link">¶</a></h4> <table> <thead> <tr> <th style="text-align: center;">Parameter</th> <th>Function</th> </tr> </thead> <tbody> <tr> <td></td> <td></td> </tr> </tbody> </table> <h2 id=environment-variables-from-files-docker-secrets>Environment variables from files (Docker secrets)<a class=headerlink href=#environment-variables-from-files-docker-secrets title="Permanent link">¶</a></h2> <p>You can set any environment variable from a file by using a special prepend <code>FILE__</code>.</p> <p>As an example:</p> <div class="language-bash highlight"><pre><span></span><code><span id=__span-2-1><a id=__codelineno-2-1 name=__codelineno-2-1 href=#__codelineno-2-1></a>-e<span class=w> </span><span class=nv>FILE__MYVAR</span><span class=o>=</span>/run/secrets/mysecretvariable
0 commit comments