From 6d2b1f309cfdcecdb3fb3187814712b19fa67cef Mon Sep 17 00:00:00 2001 From: Pavel Pivovarov Date: Tue, 23 Oct 2018 15:22:56 +1100 Subject: [PATCH] Added Readme --- README.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8f29ec8..eafa0fe 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,21 @@ # snibox-sqlite -Snibox container working with SQLite3 database for personal use \ No newline at end of file +Snibox container working with SQLite3 database for personal use + +To run this container use following parameters: + +```bash +docker run -d --name snibox \ + --volume /path/to/local/db:/app/db/database \ + --env SECRET_KEY_BASE="" \ + --publish 80:3000 \ + snibox +``` + +After first run you probably will see error due to database hasn't been initialized in the attached volume. Pleas run following command to create empty database: + +```bash +docker exec -ti rack db:migrate +``` + +This will create new database instance and Snibox is ready to go. \ No newline at end of file