-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using with docker-compose #1
Comments
Thank you! I will look more into this. I haven't had any extra time past few months to focus on this, but since a lot of people find it useful I will focus more on it. This could be added as compose example for sure! |
docker-compose v3 doesn't support the volumes-from key any more, so the instructions from that point of view are getting obsolete. I followed the instructions using the top-level "volumes" key, Here's a full working example: Of course, the adding-of-the-keys manually as outlined in the README is still required. I used kroniak/ssh-client for the test images just because it was an easy image that had the ssh client installed for testing.
|
I have written a PR for passwordless using docker secrets. This is my compose v3 file..
|
Just FYI. Here's how I am using it with docker-compose.
docker-compose:
Modify
run.sh
Add Keys
Since keys are password protected, I added
ssh-add /root/.ssh/id_rsa
as the last line in my.bashrc
file so that this would happen when I enter the php service (docker-compose exec php bash
).If you don't want to do that, you can just run
ssh-add /root/.ssh/id_rsa
to add the keys before using them.Test
or
BTW, thanks for doing this project. I am sure this can be cleaned up a little. But, it is working for me. Hopefully this will help others.
The text was updated successfully, but these errors were encountered: