-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
36 lines (29 loc) · 993 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
31
32
33
34
35
# -*- mode: ruby -*-
# vi: set ft=ruby :
$project_dir = "/srv/www"
Vagrant.require_version ">= 1.7.2"
ENV['VAGRANT_DEFAULT_PROVIDER'] = 'docker'
VAGRANTFILE_API_VERSION = "2"
if ! ENV['RAD_ENVIRONMENT']
ENV['RAD_ENVIRONMENT'] = 'development'
end
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.ssh.username = 'radphp'
config.ssh.password = 'radphp'
config.vm.define 'radphp', primary: true do |radphp|
radphp.vm.synced_folder '.', "#{$project_dir}"
radphp.vm.provision "shell" do |s|
s.path = "bin/provision.sh"
s.args = "#{$project_dir}"
end
radphp.vm.provider 'docker' do |d|
d.name = "radphp-demo-" + ENV['RAD_ENVIRONMENT']
d.image = "radphp/docker-lepp"
d.ports = ["80:80", "443:443", "8080:8080", "5432:5432"]
d.has_ssh = true
d.env = {
'RAD_ENVIRONMENT' => ENV['RAD_ENVIRONMENT']
}
end
end
end