-
Build environment
docker-compose build
-
Start containers
docker-compose up
-
Go into app container
docker exec -it t206api_web_1 bash
-
Import data
python manage.py load_data
python manage.py --help
Uses Flask-Migrate
# Initialize database
env/bin/flask bd init
# Create migration
env/bin/flask db migrate
# Apply migration
env/bin/flask db upgrade