How to Backup and Restore Docker Drupal Database & Files

I plan to use the Drupal docker container heavily, and I want to back up the data that I create for it.