Sign inSign up

ageapps/docker-tubeterest-node

By ageapps

•Updated almost 10 years ago

docker-tubeterest-node

Image
0

363

ageapps/docker-tubeterest-node repository overview

foto

⁠docker-tubeterest

Dockerized tubeterest, based on my previous project Tubeterest⁠, which is an example of a web application using Polymer⁠ library.

Following the Microservices architecture⁠, the system consists on three services that run in separate containers:

⁠Demo

Yo can find a demo, working here⁠

⁠Usage with git

Downloading the source code

$ git clone https://github.com/ageapps/docker-tubeterest.git
$ cd docker-tubeterest
$ docker-compose up
// connect in your browser to <host IP>:8080

⁠Usage with docker-compose, without source code

Just download docker-compose file to pull all images and build the app.

// download docker-compose file
$ curl https://raw.githubusercontent.com/ageapps/docker-tubeterest/master/docker-hub-compose.yml -o docker-compose.yml
// run application
$ docker-compose up
// connect in your browser to <host IP>:8080

⁠Usage with Docker Hub

No download needed, images will pull automatically.

// run mongo service
$ docker run -v "$(pwd)"/database:/data --name mongo_tubeterest -d mongo mongod --smallfiles
// run docker-tubeterest-node image
$ docker run -d --name node_tubeterest --link mongo_tubeterest:db ageapps/docker-tubeterest-node:latest
// run docker-tubeterest-nginx image
$ docker run -d --name nginx_tubeterest --link node_tubeterest:back -p 8080:80 ageapps/docker-tubeterest-nginx:latest
// connect in your browser to <host IP>:8080

⁠Resources

Tag summary

Content type

Image

Digest

Size

249.5 MB

Last updated

almost 10 years ago

docker pull ageapps/docker-tubeterest-node