See here:
Granted, some of that stuff is fairly old, but the info is there. TL;DR:
- Install Discourse.
- Make phpBB’s mysql server available over the internet.
- Enter Discourse’s container, edit
script/import_scripts/phpbb3.rb
and fill in your database server settings. - Run
ruby phpbb3.rb
.