Add docker instructions

This commit is contained in:
Ramon Wenger 2018-08-13 18:21:57 +02:00
parent 955f6d7fc0
commit 8bd702fe19
1 changed files with 6 additions and 0 deletions

View File

@ -22,6 +22,12 @@ Sources
* Run: `pipenv run python manage.py runserver`
* Dummy data: `pipenv run python manage.py dummy_data` (restart the development server afterwards) Recreates the db with test data and new superuser: test/test
#### Dockerize DB
* To dockerize the DB, after installing docker, run the following command:
```
docker run --name skillboxdb -d -p 5432:5432 -e POSTGRES_PASSWORD=skillbox -e POSTGRES_USER=skillbox -e POSTGRES_DB=skillbox postgres:alpine
```
* After a reboot, start the container again with `docker start skillboxdb`
#### Notes