- Git
- Docker
- Docker Compose
- Python 3
- PIP
- Virtualenv
- Install docker
- Intall docker-compose
-
Copy to
env.example
into.env
$ cp env.example .env $ export hola=emma
-
Edit values in
.env
depending on your preferences$ nano .env
-
You must generate the secret key
$ python3.x generate_key.py
-
Copy the result in the .env file
$ docker-compose build
$ docker-compose run web python manage migrate
-
Create user:
$ docker-compose run web python manage createsuperuser
-
Access to django admin localhost:8000/admin/
-
Start containers
$ docker-compose up
-
Stop and destroy containers
$ docker-compose down