Skip to content

weseek/docker-nchan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-nchan

NGINX + Nchan Dockerfiles

Supported tags and respective Dockerfile links

How to use this image

Launch simply

$ docker run -d weseek/nginx-nchan
  • The container provides nginx on port 80 and the endpoint /pubsub to publish/subscribe
  • See also: default.conf

Alternatively, a simple Dockerfile can be used to generate a new image that includes the necessary content (which is a much cleaner solution than the bind mount above):

FROM nginx
COPY /your-conf-directory/default.conf /etc/nginx/conf.d/

Place this file in the same directory as your directory of content ("your-conf-directory"), run docker build -t my-nginx-nchan ., then start your container:

$ docker run -d my-nginx-nchan

Exposing external port

$ docker run -d -p 8080:80 my-nginx-nchan

Then you can hit http://localhost:8080 or http://host-ip:8080 in your browser.

Other configuration

Check the reference of Official build of Nginx.