-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
32 lines (27 loc) · 969 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Location where we want to keep the data files
APPS = "/apps"
Vagrant.configure("2") do |config|
config.vm.define "mongo" do |v|
v.vm.provider "docker" do |d|
d.image = "mongo:latest"
d.name = "mongo"
d.expose = [27017]
d.ports = ["27017:27017"]
# Mongo doesn't like shared volumes...
#d.volumes = ["#{APPS}/mongo/data/db:/data/db", "#{APPS}/mongo/logs:/var/log/mongodb" ]
d.vagrant_vagrantfile = "./docker-host/Vagrantfile"
end
end
config.vm.define "deployd" do |v|
v.vm.provider "docker" do |d|
d.image = "japanvik/deployd"
d.ports = ["2403:2403"]
# Not sure if we need this for deployd
#d.volumes = ["#{APPS}/deployd/:/app/src"]
d.link("mongo:mongo")
d.vagrant_vagrantfile = "./docker-host/Vagrantfile"
end
end
end