Skip to content

Commit 923496d

Browse files
alexjustesengitbook-bot
authored andcommitted
GitBook: [alexjustesen#3] No subject
1 parent 97d4f94 commit 923496d

File tree

2 files changed

+57
-0
lines changed

2 files changed

+57
-0
lines changed

SUMMARY.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
# Table of contents
22

33
* [🐇 Speedtest Tracker](README.md)
4+
5+
## 🚀 Getting Started
6+
7+
* [Installation](getting-started/installation.md)

getting-started/installation.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Installation
2+
3+
### Install with Docker
4+
5+
{% hint style="info" %}
6+
MariaDB/MySQL and PostgreSQL instructions assumes you have a database instance that already exists.
7+
{% endhint %}
8+
9+
{% tabs %}
10+
{% tab title="Docker (Sqlite)" %}
11+
```bash
12+
docker run -itd --name speedtest-tracker \
13+
-p 8080:80 \
14+
-e "PHP_POOL_NAME=speedtest-tracker_php" \
15+
-e "DB_CONNECTION=sqlite" \
16+
-e "DB_DATABASE=/app/database.sqlite" \
17+
-v /path/to/directory:/app \
18+
speedtest-tracker
19+
```
20+
{% endtab %}
21+
22+
{% tab title="Docker (MariaDB/MySQL)" %}
23+
```bash
24+
docker run -itd --name speedtest-tracker \
25+
-p 8080:80 \
26+
-e "PHP_POOL_NAME=speedtest-tracker_php" \
27+
-e "DB_CONNECTION=mysql" \
28+
-e "DB_HOST=" \
29+
-e "DB_PORT=3306" \
30+
-e "DB_DATABASE=speedtest_tracker" \
31+
-e "DB_USERNAME=" \
32+
-e "DB_PASSWORD=" \
33+
-v /path/to/directory:/app \
34+
speedtest-tracker
35+
```
36+
{% endtab %}
37+
38+
{% tab title="Docker (PostgreSQL)" %}
39+
```bash
40+
docker run -itd --name speedtest-tracker \
41+
-p 8080:80 \
42+
-e "PHP_POOL_NAME=speedtest-tracker_php" \
43+
-e "DB_CONNECTION=pgsql" \
44+
-e "DB_HOST=" \
45+
-e "DB_PORT=5432" \
46+
-e "DB_DATABASE=speedtest_tracker" \
47+
-e "DB_USERNAME=" \
48+
-e "DB_PASSWORD=" \
49+
-v /path/to/directory:/app \
50+
speedtest-tracker
51+
```
52+
{% endtab %}
53+
{% endtabs %}

0 commit comments

Comments
 (0)