Docker bootstrap provides an easy way to ship your docker-compose file.
- Create a Dockerfile that extends ehames/docker-bootstrap image (https://hub.docker.com/r/ehames/docker-bootstrap/)
- Copy your docker-compose.yml to the image (default location /etc/docker-compose/docker-compose.yml) a. If you copy the file to a different location, set the COMPOSE_FILE environment variable.
- Build and upload it to your registry
- Run the container and all images will be downloaded and launched automatically:
docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock <your-image>