forked from dongweiming/web_develop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
18 lines (18 loc) · 805 Bytes
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# coding: utf-8
Vagrant.configure(2) do |config|
config.vm.box = "dongweiming/web_develop"
config.vm.hostname = "WEB"
config.vm.network :forwarded_port, guest: 9000, host: 9000
config.vm.network :forwarded_port, guest: 3141, host: 3141
config.vm.network :forwarded_port, guest: 5000, host: 5000
config.ssh.username = 'ubuntu'
config.ssh.password = 'ubuntu'
config.ssh.insert_key = false
config.ssh.private_key_path = ["~/.ssh/id_rsa"]
config.vm.provision "file", source: "~/.ssh/id_rsa.pub", destination: "~/.ssh/authorized_keys"
config.vm.synced_folder ".", "/vagrant", disabled: true
# config.vm.network "public_network", bridge: "en0: Wi-Fi (AirPort)"
config.vm.provider "virtualbox" do |v|
v.customize ["modifyvm", :id, "--name", "web_dev", "--memory", "1536"]
end
end