Last active
August 29, 2015 14:23
-
-
Save crisu83/8fd675e9f704bb4097b8 to your computer and use it in GitHub Desktop.
Example vagrant file for https://atlas.hashicorp.com/nordsoftware
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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