I'm torn. Your UX is about convenience, so probably expose a form for the MVP, so I can set an initial user and DB credentials for WordPress, for instance. I would probably implement it as JSON from the start though, then make it available when the REST API is ready.
Form sounds pretty but how would you understand which Docker file needs how many and which variables? Do you have any ideas?