weseek / docker-nchan

NGINX + Nchan Dockerfiles

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

NGINX + Nchan Dockerfiles

License:MIT License


Languages

Language:Dockerfile 100.0%