Skip to content

Instantly share code, notes, and snippets.

@koki-h
Created May 28, 2020 10:30
Show Gist options
  • Save koki-h/02f8a052ecab93061e0203d25cb490fc to your computer and use it in GitHub Desktop.
Save koki-h/02f8a052ecab93061e0203d25cb490fc to your computer and use it in GitHub Desktop.
docker-compose が最初から動くVagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "bento/ubuntu-18.04"
config.vm.network "private_network", ip: "192.168.33.10"
config.vm.provision "shell", inline: <<-SHELL
curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh
usermod -aG docker vagrant
systemctl enable docker
curl -L "https://github.com/docker/compose/releases/download/1.25.5/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
SHELL
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment