docker-compose run from URL
A closed docker-compose issue — https://github.com/docker/compose/issues/2313 — requested "an argument to specify docker-compose using URL", recalling https://github.com/docker/compose/issues/1818#issuecomment-128416833, with answers suggesting docker app would meet related needs.
For me, the need is trying to find ways of distribute environments to novice developers / containerised local service users (students). Noting Docker's recent re-emphasis on producing tools for developers, you could read my user group (students) as "non-technical developer managers": imagine a developer who may need to share an example of a working container with a manager who struggles to operate email...
The docker run command does not require any download and makes no assumptions about platform or other installed tools (wget, curl, git clone etc), whereas docker compose does require a download or creation of an external file.
Commits to the docker app repository appear to have stalled, which makes me think it may have fallen off the roadmap. (I also note that the installation path for docker app tools is just too complex for a percentage of my user group.)
is there any follow up about this feature?
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.
Would be awesome to see this feature, great way to have one source of truth and run throwaway containers / setup without actually having to clone a public / private repo.
For example currently setting up local dev env for developers and I want all the apps in different repos to share the same db container. I will have to either write a script to clone and run the container or could've just done this as part of the setup script:
docker-compose up --url [https://github.com/docker/roadmap/docker.compose.yaml]
🙌
I would like to reference external compose files for overrides and sharing between projects, following the examples from here: https://docs.docker.com/compose/extends/
ProjectA could produce a docker-compose file for other projects to consume during integration or shift-left testing. Inside ProjectB I could reference the remote docker-compose file ".. -f https://
If the file exists locally then use it otherwise download it.
I think if the URL feature is provided this issue will become more important: https://github.com/docker/compose/issues/4380
I am currently running into this with serviceA.yml and serviceB.yml, with the web app container in serviceA.yml dependant on the db in serviceB.yml, now if I start with:
docker-compose -f serviceA.yml -f serviceB.yml
All the services / containers are at least started and I may or not connect to the db in serviceB.yml.
If I try and run:
docker-compose -f serviceA.yml -f serviceB.yml web-container
Only the web-container from serviceA.yml is started, it would be nice if I could add a depend_ons in serviceA.yml so the services in serviceB.yml got started.