Skip to content

Latest commit

 

History

History
64 lines (47 loc) · 4.29 KB

README.md

File metadata and controls

64 lines (47 loc) · 4.29 KB

alpine-nginx-nodejs

A Docker image for running nginx with Node.js, based on Alpine Linux. This image belongs to a suite of images documented here.

Features

This image features:

Versions

See VERSIONS.md for image contents. See NODEJS.md to find specific Node.js versions.

Usage

To use this image include FROM smebberson/alpine-nginx-nodejs at the top of your Dockerfile. Inheriting from smebberson/alpine-nginx-nodejs provides you with the ability to run nginx, within a container that has Node.js for easy configuration.

The container will automatically start nginx for you. For information about how to customise the nginx setup, and where to put your static files read the guide for smebberson/alpine-nginx.

The container won't automatically start or manage your Node.js application. For information about how to set this up, [read the guide for smebberson/alpine-nodejs][smebbersonalpinenodejsgithub].

Logging

nginx logs won't automatically stream to stdout. Read the guide for smebberson/alpine-nginx to learn how to access the logs.

If Node.js application logs to stdout (which console.log does) then you'll be able to review your logs using the standard Docker process.

Example

An example of using this image can be found in examples/user-nginx-nodejs.