Docker-compose allows you to utilize either preëxisting docker images or build from source. For the build option, the official reference requires
Either a path to a directory containing a Dockerfile, or a url to a git repository.
I'd like to take advantage of the latter case, so that I don't have to create a git submodule in my project, or register a new repository on Docker Hub. Unfortunately, there are no examples for how to format the url, and every form I've tried is mistaken for a relative file path.
e.g.
---
letsencrypt:
build: https://github.com/letsencrypt/letsencrypt.git
...
Fails with the error:
ERROR: build path /{MY_CURRENT_PATH}/https:/github.com/letsencrypt/letsencrypt.git either does not exist or is not accessible.
I didn't have any more luck with the other forms I've tried:
- git@github.com:letsencrypt/letsencrypt.git
- git://github.com/letsencrypt/letsencrypt.git
- https://github.com/letsencrypt/letsencrypt