You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: getting-started/database-drivers.md
+23-19Lines changed: 23 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,39 +8,43 @@ description: >-
8
8
9
9
Since Speedtest Tracker is built on the Laravel Framework any of the framework's supported database [drivers](https://laravel.com/docs/10.x/database#configuration) are also supported.
10
10
11
-
SQLite ships as the default driver but you can also use MySQL/MariaDB and Postgres. While SQL Server is supported by Laravel it hasn't been tested with Speedtest Tracker so no support will be provided for that driver.
11
+
SQLite ships as the default driver but you can also use MySQL/MariaDB/Postgres. 
12
+
13
+
> While SQL Server is supported by Laravel it hasn't been tested with Speedtest Tracker so no support will be provided for that driver.
12
14
13
15
***
14
16
15
17
### Driver Options
16
18
17
19
#### SQLite (Default)
18
20
19
-
SQLite is a good option for simple installs and only not recommended because I think separating your application and the database into separate services is a better idea.
20
-
21
-
To use SQLite follow the steps below to create your database file: 
22
-
23
-
1. Create a volume called `speedtest-tracker` or mount a directory to the container.
24
-
2. Create a file called `database.sqlite`, you can do this by running `touch database.sqlite` in the mounted volume or create it in the mounted directory.
25
-
3. Update your environment variables to only include the following environment variable in the table below.
26
-
4. On start-up the container will checked for the database on the file system, if it can find it errors will be thrown to the log.
21
+
SQLite is a good option for simple installs. The database will be create automatically inside the docker volume. 
|`DB_HOST`| The FQDN or address to the database instance. |
33
+
|`DB_PORT`|`3306` is the default port but can depend on your setup. |
34
+
|`DB_DATABASE`| Name of the database you'll connect to. |
35
+
|`DB_USERNAME`| User that'll be used to connect to the database. |
36
+
|`DB_PASSWORD`| Password for the user above. |
33
37
34
-
MariaDB ships as the default database that's included in the `docker-compose.yml` configuration, it's functionally the same as MySQL just an open-source earlier fork.
Speedtest Tracker can be run on a variety of platforms including using [Docker and Docker Compose](installation.md) along with [Synology NAS](synology.md) devices and on [Unraid OS](unraid.md).
4
-
5
-
{% hint style="info" %}
6
-
Docker Compose is the recommended platform.
7
-
{% endhint %}
8
-
9
-
### Port Mapping
10
-
11
-
<table><thead><tr><th>Protocol</th><thdata-type="number">External port (default)</th><thdata-type="number">Internal port</th></tr></thead><tbody><tr><td>HTTP</td><td>80</td><td>80</td></tr><tr><td>HTTPS</td><td>443</td><td>443</td></tr></tbody></table>
0 commit comments