forked from blia/kulinich
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVagrantfile
More file actions
executable file
·49 lines (40 loc) · 1.69 KB
/
Vagrantfile
File metadata and controls
executable file
·49 lines (40 loc) · 1.69 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# -*- mode: ruby -*-
# vi: set ft=ruby :
#REQUIRED:
#vagrant plugin install vagrant-hostsupdater
#vagrant plugin install vagrant-vbguest
#Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.provider "virtualbox" do |vb|
vb.memory = 4098
vb.cpus = 2
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
end
config.vm.network :private_network, ip: "192.168.57.31"
config.vm.hostname = "app"
config.hostsupdater.aliases = ["app.int", "www.app.int" , "api.app.int"]
# config.vm.synced_folder "../vt-symfony-fe", "/vagrant-fe", owner: "vagrant", group: "www-data"
config.vm.provision "docker" do |d|
d.pull_images "mysql/mysql-server:latest"
d.pull_images "elasticsearch:latest"
end
config.vm.provision "docker" do |d|
d.run "mysql",
image: "mysql/mysql-server:5.7",
restart: "always",
demonize: true,
args: "-e MYSQL_ROOT_PASSWORD=root -e MYSQL_ROOT_HOST=% -p 3306:3306"
d.run "elastic",
image: "elasticsearch",
restart: "always",
demonize: true,
args: "-p 9200:9200"
end
config.vm.provision "shell", path: "./provision/install-software.sh"
config.vm.provision "shell", path: "./provision/tools/install-php5.sh"
config.vm.provision "shell", path: "./provision/tools/install-php7.sh"
config.vm.provision "shell", path: "./provision/tools/install-nodejs.sh"
config.vm.provision "shell", path: "./provision/reload-configs.sh", run: "always"
end