Added Readme
This commit is contained in:
18
README.md
18
README.md
@@ -1,3 +1,21 @@
|
||||
# snibox-sqlite
|
||||
|
||||
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="<rails secret key>" \
|
||||
--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 <container_id> rack db:migrate
|
||||
```
|
||||
|
||||
This will create new database instance and Snibox is ready to go.
|
||||
Reference in New Issue
Block a user