diff --git a/README.md b/README.md index dc51384..55c9160 100644 --- a/README.md +++ b/README.md @@ -72,7 +72,6 @@ We provide examples of configurations you might use for a specific stack. Each e * [Mongo](https://github.com/Osedea/nodock/tree/master/_examples/mongo) - MongoDB + Node + NGINX * [RabbitMQ](https://github.com/Osedea/nodock/tree/master/_examples/rabbitmq) - RabbitMQ + Node + NGINX * [Memcached](https://github.com/Osedea/nodock/tree/master/_examples/memcached) - Memcached + Node + NGINX -* [2 Node Apps](https://github.com/Osedea/nodock/tree/master/_examples/memcached) - Node + Node + NGINX ## Workspace diff --git a/_examples/2-nodes/README.md b/_examples/2-nodes/README.md deleted file mode 100644 index 3a0a25e..0000000 --- a/_examples/2-nodes/README.md +++ /dev/null @@ -1,23 +0,0 @@ -## 2 Nodes - -### Setup - -Copy all the files in this folder to the project root: - -```bash -cd / - -cp -r nodock/_examples/multiple-node/* . -mv docker-compose.override.yml nodock/ -mv node2.conf nodock/nginx/sites/ -``` - -### Usage - -```bash -cd nodock/ - -docker-compose up -d node node2 nginx -``` - -By going to `127.0.0.1` in your browser you should be seeing a nice greeting! By going to `127.0.0.1:10000` in your browser you should be seeing _another_ nice greeting! \ No newline at end of file diff --git a/_examples/2-nodes/index.js b/_examples/2-nodes/index.js deleted file mode 100644 index 05b3fdd..0000000 --- a/_examples/2-nodes/index.js +++ /dev/null @@ -1,8 +0,0 @@ -var express = require('express'); -var app = express(); - -app.get('/', function(req, res) { - res.send('You are amazing'); -}); - -app.listen(8000); diff --git a/_examples/2-nodes/node2.conf b/_examples/2-nodes/node2.conf deleted file mode 100644 index e3f2b59..0000000 --- a/_examples/2-nodes/node2.conf +++ /dev/null @@ -1,7 +0,0 @@ -server { - listen 10000 default_server; - - location / { - proxy_pass http://node2:10000; # Note that `node2` is the name of the service - } -} diff --git a/_examples/2-nodes/package.json b/_examples/2-nodes/package.json deleted file mode 100644 index 981857c..0000000 --- a/_examples/2-nodes/package.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "name": "example-2-node-docker", - "version": "1.0.0", - "description": "", - "main": "index.js", - "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" - }, - "author": "", - "license": "MIT", - "dependencies": { - "express": "^4.14.0" - } -} diff --git a/_examples/2-nodes/second-app/index.js b/_examples/2-nodes/second-app/index.js deleted file mode 100644 index 6acb42a..0000000 --- a/_examples/2-nodes/second-app/index.js +++ /dev/null @@ -1,8 +0,0 @@ -var express = require('express'); -var app = express(); - -app.get('/', function(req, res) { - res.send('You are pretty cool'); -}); - -app.listen(10000); diff --git a/_examples/2-nodes/second-app/package.json b/_examples/2-nodes/second-app/package.json deleted file mode 100644 index 5277d45..0000000 --- a/_examples/2-nodes/second-app/package.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "name": "example-multiple-node-docker", - "version": "1.0.0", - "description": "", - "main": "index.js", - "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" - }, - "author": "", - "license": "MIT", - "dependencies": { - "express": "^4.14.0" - } -} diff --git a/nginx/sites/node2.conf b/nginx/sites/node2.conf deleted file mode 100644 index e3f2b59..0000000 --- a/nginx/sites/node2.conf +++ /dev/null @@ -1,7 +0,0 @@ -server { - listen 10000 default_server; - - location / { - proxy_pass http://node2:10000; # Note that `node2` is the name of the service - } -}