Custom Docker-Discourse bootstrapping from private GIT repository

You could use a file: directive to drop the private key file into the container.

Also, you are using a deploy (read-only) key, right?