Sign inSign up

smebberson/alpine-nginx-nodejs

By smebberson

Updated over 9 years ago

Alpine Linux, s6 process management running nginx and Node.js.

Image
10

10K+

smebberson/alpine-nginx-nodejs repository overview

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.

Tag summary

Content type

Image

Digest

sha256:9bbe98362

Size

38.8 MB

Last updated

about 10 years ago

docker pull smebberson/alpine-nginx-nodejs