A Docker image for running nginx with Node.js, based on Alpine Linux. This image belongs to a suite of images documented here.
This image features:
- Alpine Linux
- s6 and s6-overlay
4.4.0
,latest
(Dockerfile)4.3.1
(Dockerfile)4.3.0
(Dockerfile)4.2.2
(Dockerfile)4.2.1
(Dockerfile)4.2.0
(Dockerfile)4.1.0
(Dockerfile)4.0.0
(Dockerfile)3.1.1
(Dockerfile)3.1.0
(Dockerfile)3.0.0
(Dockerfile)2.1.1
(Dockerfile)2.1.0
(Dockerfile)2.0.0
(Dockerfile)1.0.0
(Dockerfile)
See VERSIONS.md for image contents. See NODEJS.md to find specific Node.js versions.
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].
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.
An example of using this image can be found in examples/user-nginx-nodejs.