You can now browse http://localhost:8000 to get the web interface.
+Restore / backup
+================
+
+To restore a backuped database, put your backup file in data/backup, then in another terminal::
+
+ docker-compose run db /srv/backup/restore_db.sh FILENAME
+
+where FILENAME is the backup filename (can be .sql or .sql.gz)
+
+To backup the database, just run in another terminal::
+
+ docker-compose run db /srv/backup/backup_db.sh
+
+
API / Documentation
====================
#!/bin/bash
-gunzip < /srv/backup/$1 | mysql -hdb -uroot -pmysecretpassword telemeta
+file=$1
+
+if [[ $file == *".gz" ]]; then
+ echo 'ok'
+ gunzip < /srv/backup/$file | mysql -hdb -uroot -pmysecretpassword telemeta
+else
+ mysql -hdb -uroot -pmysecretpassword telemeta < /srv/backup/$file
+fi