-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
24 lines (18 loc) · 1.16 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/bionic64"
config.vm.provider "virtualbox" do |vb|
vb.memory = "4096"
end
config.vm.provision "shell", privileged: true, path: 'provision-root-priviledged.sh'
config.vm.provision "shell", privileged: false, path: 'provision-user-priviledged.sh'
config.vm.provision "Copy user's git config", type:'file', source: '~/.gitconfig', destination: '.gitconfig'
config.vm.network "forwarded_port", guest: 8080, host: 8080, host_ip: "0.0.0.0", id: "spring_boot"
config.vm.network "forwarded_port", guest: 8081, host: 8081, host_ip: "0.0.0.0", id: "spring_boot_2"
config.vm.network "forwarded_port", guest: 8082, host: 8082, host_ip: "0.0.0.0", id: "spring_boot_3"
config.vm.network "forwarded_port", guest: 8500, host: 8500, host_ip: "0.0.0.0", id: "consul_http"
config.vm.network "forwarded_port", guest: 8600, host: 8600, host_ip: "0.0.0.0", id: "consul_dns"
config.vm.network "forwarded_port", guest: 9090, host: 9090, host_ip: "0.0.0.0", id: "prometheus"
config.vm.network "forwarded_port", guest: 27017, host: 27017, host_ip: "0.0.0.0", id: "mongo_db"
end