Skip to content

Instantly share code, notes, and snippets.

@jamescarr
Created May 13, 2014 19:18
Show Gist options
  • Select an option

  • Save jamescarr/5c71ed1f67d8896671f0 to your computer and use it in GitHub Desktop.

Select an option

Save jamescarr/5c71ed1f67d8896671f0 to your computer and use it in GitHub Desktop.
Vagrant.configure("2") do |config|
config.vm.network :forwarded_port, guest: 5432, host: 5432
config.vm.provider "docker" do |d|
d.image = "jamesbrink/postgresql"
d.env = {
"USER" => "super",
"PASSWORD" => "clever",
"SCHEMA" => "contacts"
}
d.ports = ["5432:5432"]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment