Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 683 Bytes

readme.md

File metadata and controls

12 lines (8 loc) · 683 Bytes

Setup Node.js, Apache and an nginx reverse-proxy with Docker

Related to this article on Medium.

$ git clone https://github.com/francoisromain/docker-nginx-nodejs-php.git && cd docker-nginx-nodejs-php
$ docker-compose up

Go to http://localhost:8000 and see the result:

  • An nginx reverse-proxy forward incoming traffic to the appropriate server and directly serves static assets (images and scripts).
  • A Node.js server build pages with content pre-fetched from the PHP api (server side rendering).
  • A PHP Api running on Apache provides content as Json.