Public Repository

Last pushed: 2 years ago
Short Description
nginx reverse proxy image for as-grails team
Full Description

This nginx image v1.1 is created for AS-Grails team.
This image is proxypassing requests to 8080 port to "tomcat" container.
Dockerfile: https://github.com/assupport/dockerfiles/blob/master/elasticsearch/Dockerfile

Docker Pull Command
Owner
assupport

Comments (1)
assupport
2 years ago

The image nginx v2.0 is a http auth enabled image. When used with below docker file which is designed to have two variable passed to CMD command to get the required image which could be used for a specific container at a specific port.

FROM assupport/nginx:v2.0
MAINTAINER AS-Support <as-support[at]intelligrape[dot]com>
VOLUME /var/log/nginx
CMD ["/root/startUp.sh","angular","7766"]

startUP.sh :

#!/bin/bash
HOSTNAME=$1
PORT=$2
sed -i "s/HOSTNAME:PORT/$HOSTNAME:$PORT/" /etc/nginx/sites-enabled/default
/usr/sbin/nginx