Quellcode durchsuchen

Updated doc for sqlite

Jamie Curnow vor 5 Jahren
Ursprung
Commit
54d423a11f
2 geänderte Dateien mit 18 neuen und 12 gelöschten Zeilen
  1. 0 10
      .jenkins/config-sqlite.json
  2. 18 2
      docs/setup/README.md

+ 0 - 10
.jenkins/config-sqlite.json

@@ -5,16 +5,6 @@
 			"client": "sqlite3",
 			"connection": {
 				"filename": "/data/database.sqlite"
-			},
-			"pool": {
-				"min": 0,
-				"max": 1,
-				"createTimeoutMillis": 3000,
-				"acquireTimeoutMillis": 30000,
-				"idleTimeoutMillis": 30000,
-				"reapIntervalMillis": 1000,
-				"createRetryIntervalMillis": 100,
-				"propagateCreateError": false
 			}
 		}
 	}

+ 18 - 2
docs/setup/README.md

@@ -23,15 +23,31 @@ Here's an example configuration for `mysql` (or mariadb) that is compatible with
 }
 ```
 
+Alternatively if you would like to use a Sqlite database file:
+
+```json
+{
+  "database": {
+    "engine": "knex-native",
+    "knex": {
+      "client": "sqlite3",
+      "connection": {
+        "filename": "/data/database.sqlite"
+      }
+    }
+  }
+}
+```
+
 Once you've created your configuration file it's easy to mount it in the docker container.
 
 **Note:** After the first run of the application, the config file will be altered to include generated encryption keys unique to your installation. These keys
 affect the login and session management of the application. If these keys change for any reason, all users will be logged out.
 
 
-### Database
+### MySQL Database
 
-This app doesn't come with a database, you have to provide one yourself. Currently only `mysql/mariadb` is supported for the minimum versions:
+If you opt for the MySQL configuration you will have to provide the database server yourself. You can also use MariaDB. Here are the minimum supported versions:
 
 - MySQL v5.7.8+
 - MariaDB v10.2.7+