-
-
Notifications
You must be signed in to change notification settings - Fork 41
/
Vagrantfile
29 lines (27 loc) · 1.24 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
25
26
27
28
29
Vagrant.configure("2") do |config|
config.vm.box = "almalinux/9"
config.vm.network "forwarded_port", guest: 3000, host: 3000, host_ip: "localhost"
config.vm.network "forwarded_port", guest: 8080, host: 8080, host_ip: "localhost"
# you need enough RAM for packages to install properly
config.vm.provider "virtualbox" do |vb|
vb.memory = "4096"
vb.cpus = "4"
end
config.vm.provider "vmware_desktop" do |v|
v.vmx["memsize"] = "4096"
v.vmx["numvcpus"] = "4"
end
# Libvirt provider
config.vm.provider "libvirt" do |libvirt|
libvirt.memory = 4096
libvirt.cpus = 4
end
# setup the synced folder and provision the VM
config.vm.synced_folder ".", "/var/www/pterodactyl"
config.vm.provision "shell", path: "vagrant/provision.sh"
config.vm.post_up_message = "Pterodactyl is up and running at http://localhost:3000. Login with username: dev@pyro.host, password: 'password'."
# allocated testing ports
config.vm.network "forwarded_port", guest: 25565, host: 25565, host_ip: "localhost"
config.vm.network "forwarded_port", guest: 25566, host: 25566, host_ip: "localhost"
config.vm.network "forwarded_port", guest: 25567, host: 25567, host_ip: "localhost"
end