diff --git a/README.md b/README.md index 9c899b35..a7fd465b 100644 --- a/README.md +++ b/README.md @@ -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