Sha256: 316a8818a315c958f0cb2da8c73057d7679a071abc361862f04386e12b9ed81c
Contents?: true
Size: 1.55 KB
Versions: 1
Compression:
Stored size: 1.55 KB
Contents
# Vagrant Provisioner: Docker Compose A Vagrant provisioner for [Docker Compose](https://docs.docker.com/compose/). Installs Docker Compose and can also bring up the containers defined by a [docker-compose.yml](https://docs.docker.com/compose/yml/). ## Install ```bash vagrant plugin install vagrant-docker-compose ``` ## Usage ### To install docker and docker-compose ```ruby Vagrant.configure("2") do |config| config.vm.box = "ubuntu/trusty64" config.vm.provision :docker config.vm.provision :docker_compose end ``` ### To install and run docker-compose on `vagrant up` ```ruby Vagrant.configure("2") do |config| config.vm.box = "ubuntu/trusty64" config.vm.provision :docker config.vm.provision :docker_compose, yml: "/vagrant/docker-compose.yml", run: "always" end ``` Equivalent to running: ```bash docker-compose -f [yml] up ``` ### To install, rebuild and run docker-compose on `vagrant up` ```ruby Vagrant.configure("2") do |config| config.vm.box = "ubuntu/trusty64" config.vm.provision :docker config.vm.provision :docker_compose, yml: "/vagrant/docker-compose.yml", rebuild: true, run: "always" end ``` Equivalent to running: ```bash docker-compose -f [yml] rm docker-compose -f [yml] build docker-compose -f [yml] up ``` ### Other configs * `compose_version` – defaults to `1.3.1`. * `project_name` – compose will default to naming the project `vagrant`. * `executable` – the location the executable will be stored, defaults to `/usr/local/bin/docker-compose`. ## Example See `example` in the repository for a full working example.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vagrant-docker-compose-0.0.4 | README.md |