Not exactly your use case, but maybe someone will find it useful:
I really like https://compose.ajnart.dev/ - the creator of homarr (a dashboard with a lot of integrations) build a tool for creating docker compose files.
You can configure what services you’d like to run or use a predefined template (e.g. “the dad” with Jellyfin, Nextcloud, Pihole, Homarr and Home Assistant).
You’d still have to understand what you are doing, of course.
KED for anyone wondering.