'dogebox' ip = '192.168.100.46' ram = '2048' cpu = '2' project_location = "~/devops-course" Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| # Box conf config.vm.box = box config.vm.host_name = hostname # Network conf config.vm.network :private_network, ip: ip # Ports config.vm.network :forwarded_port, guest: 8000, host: 8000 # Django config.vm.network :forwarded_port, guest: 9000, host: 9000 # Django 2 config.vm.network :forwarded_port, guest: 5432, host: 15432 # Postgres config.vm.network :forwarded_port, guest: 9200, host: 19200 # Elastic search # Synced folders config.vm.synced_folder project_location, "/home/vagrant/projects" # Provider conf config.vm.provider :virtualbox do |vb| vb.customize [ "modifyvm", :id, "--memory", ram, "--cpus", cpu, "--ioapic", "on", ] end end Vagrantfile