Add docker instructions
This commit is contained in:
parent
955f6d7fc0
commit
8bd702fe19
|
|
@ -22,6 +22,12 @@ Sources
|
||||||
* Run: `pipenv run python manage.py runserver`
|
* 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
|
* 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
|
#### Notes
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue