forked from abevoelker/docker-openproject
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Vagrantfile
48 lines (42 loc) · 1.31 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
ENV['VAGRANT_DEFAULT_PROVIDER'] ||= 'docker'
# Vagrant doesn't play well w/ Docker and parallel provisioning
ENV['VAGRANT_NO_PARALLEL'] ||= 'true'
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.define "postgres" do |postgres|
postgres.vm.provider 'docker' do |d|
d.image = 'paintedfox/postgresql'
d.name = 'openproject_postgres'
d.env = {
'USER' => 'super',
'PASS' => 'password'
}
end
end
config.vm.define "memcached" do |memcached|
memcached.vm.provider 'docker' do |d|
d.image = 'tutum/memcached'
d.name = 'openproject_memcached'
d.env = {
'MEMCACHED_PASS' => 'password'
}
end
end
config.vm.define "openproject" do |openproject|
openproject.vm.provider 'docker' do |d|
d.image = 'progtologist/openproject'
d.name = 'openproject'
d.cmd = ['/var/www/openproject/docker/scripts/start_application.sh']
d.ports = ['8080:80']
d.env = {
'GMAIL_USERNAME' => '',
'GMAIL_PASSWORD' => ''
}
d.link('openproject_postgres:postgres')
d.link('openproject_memcached:memcached')
end
end
end