Skip to content

Instantly share code, notes, and snippets.

@crisu83
Last active August 29, 2015 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save crisu83/8fd675e9f704bb4097b8 to your computer and use it in GitHub Desktop.
Save crisu83/8fd675e9f704bb4097b8 to your computer and use it in GitHub Desktop.
Example vagrant file for https://atlas.hashicorp.com/nordsoftware
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Web server configuration
config.vm.define "web" do |web|
web.vm.box = "nordsoftware/nginx-php-nvm"
web.vm.network "private_network", ip: "192.168.50.50"
web.vm.synced_folder "./server", "/app/server"
web.vm.synced_folder "./client", "/app/client"
web.vm.synced_folder "./sites", "/etc/nginx/sites-enabled"
web.vm.provision "shell", inline: "sudo service nginx restart"
end
# Database server configuration
config.vm.define "db" do |db|
db.vm.box = "nordsoftware/mariadb-10"
db.vm.network "private_network", ip: "192.168.50.51"
db.vm.synced_folder '.', '/vagrant', disabled: true
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment