A docker image to use nginx as a reverse proxy with basic auth
A docker image to use nginx as a reverse proxy with basic auth.
Usage in a docker-compose file :
nginx: image: euranova/nginx-proxy-basic-auth:latest volumes: # a htpasswd file should be provided - ./htpasswd:/htpasswd # a custom nginx.conf can be used if needed # - ./nginx.conf:/nginx.conf links: - application-server environment: FORWARD_HOST: application-server # the port of the application server FORWARD_PORT: 8080 # the port nginx will listen on PUBLIC_PORT: 80 # what nginx will use as server name PUBLIC_SERVER_NAME: "my-server-name" ports: - 80:80
Docker Pull Command