forked from WSt89/hiveeyes-backend-docker-compose
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Vagrantfile
30 lines (21 loc) · 900 Bytes
/
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
30
Vagrant.configure("2") do |config|
config.vm.define "hiveeyes-debian11" do |machine|
machine.vm.box = "generic/debian11"
machine.vm.hostname = "hiveeyes-debian10"
machine.vm.provider :virtualbox do |v|
v.customize ["modifyvm", :id, "--memory", 2048]
v.customize ["modifyvm", :id, "--name", "hiveeyes-debian11"]
v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
v.customize ["modifyvm", :id, "--natdnsproxy1", "on"]
end
machine.vm.synced_folder ".", "/vagrant"
config.vm.provision :docker
#config.vm.provision :docker_compose, yml: "/vagrant/docker-compose-standard.yml", run:"always"
config.vm.provision "shell", inline: <<-SHELL
sudo apt-get update
sudo apt-get install -y mosquitto-clients curl httpie
cd /vagrant
docker-compose --file=docker-compose-standard.yml up --detach
SHELL
end
end