File: multivm_Vagrantfile

package info (click to toggle)
python-vagrant 1.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 268 kB
  • sloc: python: 1,157; sh: 17; makefile: 5
file content (16 lines) | stat: -rw-r--r-- 561 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# http://docs.vagrantup.com/v2/multi-machine/index.html
# http://docs.vagrantup.com/v2/networking/

Vagrant.configure("2") do |config|
  config.vm.define :web do |web|
    web.vbguest.auto_update = false if Vagrant.has_plugin?("vagrant-vbguest")
    web.vm.box = "generic/alpine315"
    web.vm.network :forwarded_port, guest: 80, host: 8080
  end

  config.vm.define :db do |db|
    db.vbguest.auto_update = false if Vagrant.has_plugin?("vagrant-vbguest")
    db.vm.box = "generic/alpine315"
    db.vm.network :forwarded_port, guest: 3306, host: 3306
  end
end