aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md7
-rw-r--r--docker-compose.yml9
2 files changed, 16 insertions, 0 deletions
diff --git a/README.md b/README.md
index e51b969..6f03880 100644
--- a/README.md
+++ b/README.md
@@ -18,3 +18,10 @@ python app.py
```
The database is in the sqlite file `khanindexer.db` at the root of the project.
+
+# Testing
+
+If you just want to test and don't want to install a MySQL (or MariaDB)
+database but have Docker installed, juste use the `docker-compose.yml`.
+This is only for test, don't use this shit on production (the docker-compose
+file)!
diff --git a/docker-compose.yml b/docker-compose.yml
new file mode 100644
index 0000000..b2aca59
--- /dev/null
+++ b/docker-compose.yml
@@ -0,0 +1,9 @@
+version: "3"
+
+services:
+ mysql:
+ image: mariadb
+ environment:
+ MYSQL_ROOT_PASSWORD: root
+ ports:
+ - "3306:3306"