-
Hello, I am trying to get probot setup as a docker stack along with a proxy server to divvy up incoming requests to several instances of the app. The only way so far I have been able to get this to work is by having the .pem file locally available. I wanted to utilize docker secrets so I wouldn't need to keep the file available for anyone to just open. However, I have create the secrets using the files and then tried setting the
Has anyone been able to successfully use docker secrets to store the pem file contents and get probot to understand it? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
make sure that |
Beta Was this translation helpful? Give feedback.
-
The only way I was able to get secrets to work for the pem key was using the below links and script: I created the secret from the pem file directly on the docker machine https://www.reddit.com/r/docker/comments/9k4tdi/using_docker_secrets_to_replace_environment_vars/e6yb8bt/?context=8&depth=9 It seems a little wonky, but it works and this way I don't have to include the pem file in my docker image. |
Beta Was this translation helpful? Give feedback.
The only way I was able to get secrets to work for the pem key was using the below links and script:
I created the secret from the pem file directly on the docker machine
Then utilized the script mentioned below in my compose file to grab the secret and put it into the environment variable
https://www.reddit.com/r/docker/comments/9k4tdi/using_docker_secrets_to_replace_environment_vars/e6yb8bt/?context=8&depth=9
https://medium.com/@adrian.gheorghe.dev/using-docker-secrets-in-your-environment-variables-7a0609659aab
https://gist.github.com/kevb/e0bef6549d0af12170b0beaeb736371d
It seems a little wonky, but it works and this way I don't have to include the pem file in my docker image.