- Docker version 20.10.8 or greater.
- Python 3.
-
Build development container:
$ docker-compose build
-
Run container
$ docker-compose up -d
-
Run container
$ docker-compose up -d --build
-
Run container Create the table:
$ docker-compose exec web python manage.py create_db
```
6. Access db
```
docker-compose exec db psql --username=hello_flask --dbname=hello_flask_dev
\c hello_flask_dev
\dt
```