From 8bd702fe194330408a7e5a377ec1732b06ca634b Mon Sep 17 00:00:00 2001 From: Ramon Wenger Date: Mon, 13 Aug 2018 18:21:57 +0200 Subject: [PATCH] Add docker instructions --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) 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