dockerfiles: Test for database connection before provisioning
dockerfiles: Add fig.yml example for deployment using fig.