A basic skeleton for an multi-app/multi-service environment based on node.js.
This repository contains a basic skeleton for an multi-app/multi-service environment based on node.js.
Nginx is in front of the node.js apps and acts as a reverse proxy.
The Ansible playbook deploys the setup to an Ubuntu host.
This setup can be used for development via Vagrant.
Via Vagrant it is also possible to deploy the same setup to Digital Ocean
ansible-galaxy install -r requirements.yml
vagrant up
to spin up the virtual machineWith the steps above you get the following:
Copy keymetrics/vars.default.yml
to keymetrics/vars.yml
and replace the content with
---
### keymetrics configuration
keymetrics: yes
keymetrics_public_key: YourKeymetricsPublicKey
keymetrics_secret_key: YourKeymetricsSecretKey
and you will also see the dashboard with both apps in Keymetrics.
vagrant plugin install vagrant-digitalocean
digitalocean/config.default.yml
to digitalocean/config.yml
and edit it to add your token (it is also possible to tweak the other settings for the droplet)vagrant up --provider=digital_ocean
and wait for your droplet to be createdA detailed explanation about most of this is available on Medium.