Influxdb2 docker-compose example. How to run database and dashboard on different containers

I am having trouble finding documentation on how to run the new v2 database on its own (without Chronograf) and how to run Chronograf on its own (without the database).

I do not believe is a good idea to run both the database and the dashboard on the same container, so I want to run each on its own container so I can size them and scale them independently.

Is there an example of somebody doing this? Maybe a docker-compose file? Or can somebody at least point me to the documentation to running each on its own? I believe this is possible and I am almost sure I have seen it, but not that I need it, cannot find it.

Thanks,