From 218b29fb56d4fcf9f6a02e34571ae48cfe006f32 Mon Sep 17 00:00:00 2001 From: Pavel Pivovarov Date: Fri, 7 Dec 2018 22:22:59 +1100 Subject: [PATCH] Updated README --- README.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 0c43589..ff01017 100644 --- a/README.md +++ b/README.md @@ -9,22 +9,23 @@ git clone https://gitlab.com/pivpav/snibox-sqlite.git docker build -t snibox ./snibox-sqlite ``` -Alternatively you can use ready to use image +Alternatively you can pull ready to use image from [Docker Hub](https://hub.docker.com/r/snowmean/snibox-sqlite/) ```bash docker pull snowmean/snibox-sqlite:latest ``` -To run this container use following parameters: +Default database file location is `/app/db/database/snibox.sqlite3`, but you can redefine its location by using environment variable `DATABASE`. + +Container runs `rake db:migrate` on every start, in order to create database file if not exist, or update database scheme if required, so backups are highly recommended. + +To run this container you might use following command: ```bash docker run -d --name snibox \ --volume /path/to/local/db:/app/db/database \ --publish 80:3000 \ --restart always \ - snibox + snowmean/snibox-sqlite ``` -Default database file location is `/app/db/database/snibox.sqlite3`, however you can redefine it by using environment variable `DATABASE`. - -Container is running `rake db:migrate` on every start, in order to either create database if not exist, or update database scheme if required, so backups are highly recommended. \ No newline at end of file