Updated README

This commit is contained in:
Pavel Pivovarov
2018-12-07 22:22:59 +11:00
parent abbf3caf5f
commit 218b29fb56

View File

@@ -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.