If you use Docker Desktop >=4.16, you could try if docker init can help you to kick-start your project.
You can always start of by searching for other projects on GitHub using the same technology stack you are looking for, and see what they did and how they did it.
The compose specification tells you what field are required and optional: The Compose application model | Docker Docs