Dev Environment Set Up Questions

Newb to both fly and phoenix here.

I’d like to set up a test environment where I push to github and it’s auto deployed to fly. I understand how to do that, but not when it comes to the database. I want a separate test db too, that, I guess, will need to be manually dumped and restored to the fly db app. Since the fly install docs say not to configure the db through phoenix, how is this accomplished?