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
+20-18Lines changed: 20 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,31 +16,33 @@ SQLite ships as the default driver but you can also use MySQL/MariaDB and Postgr
16
16
17
17
#### SQLite (Default)
18
18
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.
19
+
SQLite is a good option for simple installs. The database will be create automatically inside the docker volume. 
27
20
28
21
| Environment Variable | Value |
29
22
| -------------------- | -------- |
30
23
|`DB_CONNECTION`|`sqlite`|
31
24
32
-
#### MySQL/MariaDB
25
+
#### MariaDB
33
26
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.
0 commit comments