Skip to content

Instantly share code, notes, and snippets.

@pantasio
Created April 25, 2019 15:52
Show Gist options
  • Save pantasio/0bb042e9a417fbc1c30344dd9824aea8 to your computer and use it in GitHub Desktop.
Save pantasio/0bb042e9a417fbc1c30344dd9824aea8 to your computer and use it in GitHub Desktop.
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.provider "virtualbox" do |vb|
vb.gui = false
vb.name = "docker-example-vm"
vb.memory = "1024"
vb.cpus = 1
end
config.vm.provision "docker" do |d|
d.pull_images "redis"
end
config.vm.provision "shell" do |sh|
sh.path = 'provisioning/install-docker-compose.sh'
end
config.vm.provision "shell" do |sh|
sh.inline = 'docker-compose -f /vagrant/docker/docker-compose.yml up -d --build'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment