Is it possible to pass custom environment variables to the docker container?

Do you mean pasting the middle part of the key as it is? That would be somewhat more cleaner.