Check if you have installed the following application :
- Docker
$ cp .env.sample .env
$ touch .env
Modify the file with the value you want
# Configure database name, user and password.
POSTGRES_DB=your_db_name
POSTGRES_USER=your_db_user
POSTGRES_PASSWORD=your_db_password
# Database manager PGADMIN
PGADMIN_DEFAULT_EMAIL=your_email
PGADMIN_DEFAULT_PASSWORD=your_password
$ docker-compose build
$ docker-compose up -d
$ docker-compose run --rm api python manage.py makemigrations
$ docker-compose run --rm api python manage.py migrate
Use -d if you want to detach the container