compose icon indicating copy to clipboard operation
compose copied to clipboard

Add an argument to specify docker-compose using URL

Open arun-gupta opened this issue 11 years ago • 13 comments

Currently docker-compose only takes docker-compose.yml that has to be on the local file system. Just like docker build, it'll be good to provide a context for docker-compose up -d. This will allow to run an application from a github project.

arun-gupta avatar Nov 04 '15 01:11 arun-gupta

I like this idea, I proposed the same thing here: https://github.com/docker/compose/issues/1818#issuecomment-128416833

There are still things to work out though. Should the file that is downloaded be saved locally?

dnephin avatar Nov 04 '15 01:11 dnephin

@dnephin The file can be cached, and downloaded again based upon timestamp.

arun-gupta avatar Nov 04 '15 01:11 arun-gupta

This is a great idea, and feels like a very natural way to deploy.

astewart-twist avatar Jun 28 '16 05:06 astewart-twist

I would like to say I am facing same problem. If docker-compose support external URL I can release internal tools by only one command rather than a complex config

zysimplelife avatar Jul 18 '16 02:07 zysimplelife

I think a nice model for github url based docker-compose deployments could that used by next flow (http://www.nextflow.io/blog/2014/share-nextflow-pipelines-with-github.html).

astewart-twist avatar Jul 18 '16 19:07 astewart-twist

It seems like this could be very useful for deploying docker-compose apps. I'm interested in implementing this. Adding an option for docker-compose up --url <url>, that would cache the yml file at the provided url and run the application. Would this be useful? Are there any specific design concerns related to this?

summergirl21 avatar Dec 05 '17 23:12 summergirl21

After looking at implementation of yml parsing, it seems like this would be better as an option on docker-compose itself. docker-compose --url <url> [COMMAND]. Would this make sense and be a reasonable solution?

summergirl21 avatar Dec 06 '17 00:12 summergirl21

@shin- This seems to have gotten stuck on the PR, which was closed because of some vaguely specified concerns about cross file loading, and possible unknown side effects and related security concerns.

Is there any way that this could move forward? For example, by specifying that files that are loaded by --url cannot reference other files? And cannot use a local .env file without it being explicitly specified. Having functionality like this would be incredibly useful for us internally, since then we could just tell our internal users to:

docker-compose --url https://minio.internal.lan/release/software/version/docker-compose.yml

And they could start a test instance of any version of the software. As it is now, they need to create a new directory, download the docker-compose.yml to it, cd to that directory, and finally docker-compose up from that. Not impossible, but not as easy.

pwagland avatar Sep 30 '18 13:09 pwagland

This feature is quite important and useful, is there any way to make it move forward?

stormeyes avatar Jan 04 '19 06:01 stormeyes

I don't think this will make it into Compose for the reasons I outlined in #5441, but you should take a look at app packages which should answer most of the use cases mentioned in this thread.

shin- avatar Jan 04 '19 06:01 shin-

This would be very useful. I'm trying to make demonstrations using docker-compose for folks that don't have the savvy to do git clone to clone a repository to get the docker-compose.yaml file.

docktermj avatar Sep 23 '19 12:09 docktermj

I thin this would be really useful: one advantage of docker run is that you don't need to share any files, just the run command.

docker app doesn't seem to have received any attention in recent months, and from the README looks like it requires its own laboured install.

My use case is trying to share teaching environments to students via containers. Every download, every extra step causes a chance of failing to engage that student.

(Given docker's recent re-emphasis on "the developer", for "student" read "not very confident newly qualified developer who has never used docker before".)

psychemedia avatar Dec 11 '20 19:12 psychemedia

I tried to work out a way to achieve this today and then soon realised it was on a roadmap but not yet finalised.

Would be very useful to pull info from github rather than cloning a repository as many have said.

Cheers.

GD-HCK avatar Jul 19 '21 15:07 GD-HCK