Yes, when the container is started you get the db url connect string, you connect to it, load the schema and any test data/seeds.
For me I just run the ddl (sitting in a .sql file) and run my tests. They run with an empty db but I could have sample data too the same way.