Have you thought about generating a docker-compose file as well? While they typically combine a few services, a fragment would work well.