Skip to content

Commit 6db4abd

Browse files
authored
Merge pull request alexjustesen#105 from svenvg93/2634
Add APP_URL to docker examples
2 parents 21b1a53 + a23b5bf commit 6db4abd

File tree

2 files changed

+28
-14
lines changed

2 files changed

+28
-14
lines changed

getting-started/installation/using-docker-compose.md

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ You will need to get your user's `PUID` and `PGID`, you can do this by running `
3838

3939
{% tabs %}
4040
{% tab title="SQLite" %}
41-
```yaml
42-
services:
41+
<pre class="language-yaml"><code class="lang-yaml">services:
4342
speedtest-tracker:
4443
image: lscr.io/linuxserver/speedtest-tracker:latest
4544
restart: unless-stopped
@@ -50,12 +49,13 @@ services:
5049
environment:
5150
- PUID=
5251
- PGID=
53-
- APP_KEY=
52+
- <a data-footnote-ref href="#user-content-fn-1">APP_KEY</a> # Required
53+
- <a data-footnote-ref href="#user-content-fn-2">APP_URL</a>= # Required
5454
- DB_CONNECTION=sqlite
5555
volumes:
5656
- /path/to/data:/config
5757
- /path/to-custom-ssl-keys:/config/keys
58-
```
58+
</code></pre>
5959
{% endtab %}
6060

6161
{% tab title="MariaDB" %}
@@ -70,7 +70,8 @@ services:
7070
environment:
7171
- PUID=
7272
- PGID=
73-
- APP_KEY=
73+
- <a data-footnote-ref href="#user-content-fn-1">APP_KEY</a> # Required
74+
- <a data-footnote-ref href="#user-content-fn-2">APP_URL</a>= # Required
7475
- DB_CONNECTION=mariadb
7576
- DB_HOST=db
7677
- DB_PORT=3306
@@ -115,7 +116,8 @@ services:
115116
environment:
116117
- PUID=
117118
- PGID=
118-
- APP_KEY=
119+
- <a data-footnote-ref href="#user-content-fn-1">APP_KEY</a> # Required
120+
- <a data-footnote-ref href="#user-content-fn-2">APP_URL</a>= # Required
119121
- DB_CONNECTION=mysql
120122
- DB_HOST=db
121123
- DB_PORT=3306
@@ -160,7 +162,8 @@ services:
160162
environment:
161163
- PUID=
162164
- PGID=
163-
- APP_KEY=
165+
- <a data-footnote-ref href="#user-content-fn-1">APP_KEY</a> # Required
166+
- <a data-footnote-ref href="#user-content-fn-2">APP_URL</a>= # Required
164167
- DB_CONNECTION=pgsql
165168
- DB_HOST=db
166169
- DB_PORT=5432
@@ -226,3 +229,7 @@ You can now start the container accordingly the platform you are on.
226229
During the start the container there is a default username and password created. Use the [default login](../../security/authentication.md#default-user-account) credentials to login to the application. You can [change the default user](../../security/authentication.md#change-account-details) after logging in.
227230
{% endstep %}
228231
{% endstepper %}
232+
233+
[^1]: Generate with: `echo -n 'base64:'; openssl rand -base64 32`
234+
235+
[^2]: The URL where you'll access the app (e.g., `http://localhost:8080`)

getting-started/installation/using-docker.md

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,18 @@ You will need to get your user's `PUID` and `PGID`, you can do this by running `
3838

3939
{% tabs %}
4040
{% tab title="SQLite" %}
41-
```docker
42-
docker run -d --name speedtest-tracker --restart unless-stopped \
41+
<pre class="language-docker"><code class="lang-docker">docker run -d --name speedtest-tracker --restart unless-stopped \
4342
-p 8080:80 \
4443
-p 8443:443 \
4544
-e PUID= \
4645
-e PGID= \
47-
-e APP_KEY= \
46+
-e <a data-footnote-ref href="#user-content-fn-1">APP_KEY</a>= \
47+
-e <a data-footnote-ref href="#user-content-fn-2">APP_URL</a>= \
4848
-e DB_CONNECTION=sqlite \
4949
-v /path/to/data:/config \
5050
-v /path/to-custom-ssl-keys:/config/keys \
5151
lscr.io/linuxserver/speedtest-tracker:latest
52-
```
52+
</code></pre>
5353
{% endtab %}
5454

5555
{% tab title="MariaDB" %}
@@ -59,7 +59,8 @@ docker run -d --name speedtest-tracker --restart unless-stopped \
5959
-p 8443:443 \
6060
-e PUID= \
6161
-e PGID= \
62-
-e APP_KEY= \
62+
-e <a data-footnote-ref href="#user-content-fn-1">APP_KEY</a>= \
63+
-e <a data-footnote-ref href="#user-content-fn-2">APP_URL</a>= \
6364
-e DB_CONNECTION=mariadb \
6465
-e DB_HOST= \
6566
-e DB_PORT=3306 \
@@ -79,7 +80,8 @@ docker run -d --name speedtest-tracker --restart unless-stopped \
7980
-p 8443:443 \
8081
-e PUID= \
8182
-e PGID= \
82-
-e APP_KEY= \
83+
-e <a data-footnote-ref href="#user-content-fn-1">APP_KEY</a>= \
84+
-e <a data-footnote-ref href="#user-content-fn-2">APP_URL</a>= \
8385
-e DB_CONNECTION=mysql \
8486
-e DB_HOST= \
8587
-e DB_PORT=3306 \
@@ -99,7 +101,8 @@ docker run -d --name speedtest-tracker --restart unless-stopped \
99101
-p 8443:443 \
100102
-e PUID=1000 \
101103
-e PGID=1000 \
102-
-e APP_KEY=
104+
-e <a data-footnote-ref href="#user-content-fn-1">APP_KEY</a>= \
105+
-e <a data-footnote-ref href="#user-content-fn-2">APP_URL</a>= \
103106
-e DB_CONNECTION=pgsql \
104107
-e DB_HOST= \
105108
-e DB_PORT=5432 \
@@ -146,3 +149,7 @@ You can now start the container accordingly the platform you are on.
146149
During the start the container there is a default username and password created. Use the [default login](../../security/authentication.md#default-user-account) credentials to login to the application. You can [change the default user](../../security/authentication.md#change-account-details) after logging in.
147150
{% endstep %}
148151
{% endstepper %}
152+
153+
[^1]: Generate with: `echo -n 'base64:'; openssl rand -base64 32`
154+
155+
[^2]: The URL where you'll access the app (e.g., `http://localhost:8080`)

0 commit comments

Comments
 (0)