The recommended path is to use the official installers. They prepare Docker Compose, generate secrets outside the configuration file, run migrations and create the first administrator without repeating sensitive steps by hand.
In production, Docker Compose handles startup, not the complete operation. You still need to manage secrets, backups, permissions, logs and exposed ports.
On Windows with Docker Desktop, files mounted from the host do not always behave the same as inside Linux. Scripts, permissions and line endings deserve extra review.