Skip to content

Commit f5c8cd7

Browse files
alexjustesengitbook-bot
authored andcommitted
GITBOOK-76: change request with no subject merged in GitBook
1 parent 1519a6c commit f5c8cd7

File tree

1 file changed

+40
-5
lines changed

1 file changed

+40
-5
lines changed

getting-started/installation/installation.md

Lines changed: 40 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,31 @@ description: >-
88

99
### Install with Docker Compose (recommended)
1010

11-
Setting up your environment with Docker Compose is the recommended infrastructure pattern as it'll setup the application and a database for you.
11+
Setting up your environment with Docker Compose is the recommended infrastructure pattern as it'll setup the application and a database for you. SQLite is fine for most installs but we also provide instructions for setting up MariaDB, MySQL and Postgres should you prefer those database drivers.
1212

1313
{% tabs %}
14-
{% tab title="Docker (MariaDB/MySQL)" %}
14+
{% tab title="SQLite" %}
15+
```yaml
16+
version: '3.4'
17+
services:
18+
speedtest-tracker:
19+
container_name: speedtest-tracker
20+
ports:
21+
- 8080:80
22+
- 8443:443
23+
environment:
24+
- PUID=1000
25+
- PGID=1000
26+
- DB_CONNECTION=sqlite
27+
volumes:
28+
- /path/to/data:/config
29+
- /path/to/directory/web:/etc/ssl/web
30+
image: lscr.io/linuxserver/speedtest-tracker:latest
31+
restart: unless-stopped
32+
```
33+
{% endtab %}
34+
35+
{% tab title="MariaDB/MySQL" %}
1536
```yaml
1637
version: '3.4'
1738
services:
@@ -51,7 +72,7 @@ volumes:
5172
```
5273
{% endtab %}
5374
54-
{% tab title="Docker (PostgreSQL)" %}
75+
{% tab title="Postgres" %}
5576
```yaml
5677
version: '3.4'
5778
services:
@@ -100,7 +121,21 @@ These instructions assume you have an appropriate database instance that already
100121
{% endhint %}
101122
102123
{% tabs %}
103-
{% tab title="Docker (MariaDB/MySQL)" %}
124+
{% tab title="SQLite" %}
125+
```bash
126+
docker run -d --name speedtest-tracker --restart unless-stopped \
127+
-p 8080:80 \
128+
-p 8443:443 \
129+
-e PUID=1000 \
130+
-e PGID=1000 \
131+
-e DB_CONNECTION=sqlite \
132+
-v /path/to/data:/config \
133+
-v /path/to/directory/web:/etc/ssl/web \
134+
lscr.io/linuxserver/speedtest-tracker:latest
135+
```
136+
{% endtab %}
137+
138+
{% tab title="MariaDB/MySQL" %}
104139
```bash
105140
docker run -d --name speedtest-tracker --restart unless-stopped \
106141
-p 8080:80 \
@@ -119,7 +154,7 @@ docker run -d --name speedtest-tracker --restart unless-stopped \
119154
```
120155
{% endtab %}
121156

122-
{% tab title="Docker (PostgreSQL)" %}
157+
{% tab title="Postgres" %}
123158
```bash
124159
docker run -d --name speedtest-tracker --restart unless-stopped \
125160
-p 8080:80 \

0 commit comments

Comments
 (0)