Entwicklungsumgebung – vagrant + docker

# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure("2") do |config|
config.vm.box = "PathToFile/kinetic-server-cloudimg-amd64-vagrant.box"

config.vm.box_check_update = false

config.vm.network "forwarded_port", guest: 80, host: 80
config.vm.network "forwarded_port", guest: 443, host: 443


config.vm.synced_folder ".", "/vagrant", disabled: true
config.vm.synced_folder "projekte", "/home/vagrant/projekte"

config.vm.provider "virtualbox" do |vb|
vb.name = "ubuntu-kinetic-22.10"
end

config.vm.provision "shell", inline: <<-SHELL
apt update
apt install docker.io -y
apt install docker-compose -y
usermod -aG docker vagrant
SHELL
end