Skip to content
This repository has been archived by the owner on Nov 20, 2020. It is now read-only.

Multiple Contemporary Hosts #79

Open
riccardotommasini opened this issue May 1, 2017 · 6 comments
Open

Multiple Contemporary Hosts #79

riccardotommasini opened this issue May 1, 2017 · 6 comments

Comments

@riccardotommasini
Copy link

Add the opportunity to connect multiple hosts at the same time

@francescou
Copy link
Owner

I guess you would like to define multiple docker endpoints and then switch between them.
This could be implemented but there would be a limitation: once you've changed docker endpoint the modification also applies to every other user connected to the same docker-compose-ui webapp.

This happens because the current implementation of docker-compose-ui to set a remote docker host is based on the DOCKER_HOST env, just like the docker-compose cli.

@riccardotommasini
Copy link
Author

If I understood, you mention a sort of docker host bookmarks that are also manageable from the UI.
That would be enough for me.

I have also a question, how are you interacting with docker-compose. I imagine you import it as a library then you wrap the API to for a programmatic usage.

Would be possible to integrate this behavior with Docker-Py and instantiate client "manually":
docker.DockerClient(base_url='host:port')

IDK if in this way you can keep the 100% compatibility with compose API though.

@francescou
Copy link
Owner

Hi @riccardotommasini I think you're right. I am actively investigating on how to implement this feature.

@francescou
Copy link
Owner

it should be quite easy to instantiate different clients to multiple docker hosts, my only concern is where to store the hosts list (since docker-compose-ui does not depend on a database).

@riccardotommasini
Copy link
Author

Sounds naive, but I think you can keep them in memory as it is right now.

@bergtwvd
Copy link

For persistence, how about a json format file in a directory that can be mounted on the host OS ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants