Sign inSign up

apontador/haproxy-https

By apontador

Updated almost 7 years ago

Image
0

272

apontador/haproxy-https repository overview

HAPROXY https -> http

This docker is intended to be a reverse proxy to make UI be accessed with HTTPS.

It redirects https (443) requests to this docker to a target port in host machine.

HTTPS -> HTTP

443 -> 8080

Run

# Using default values for HOST_IP and HOST_PORT
docker run -d --name haproxy-https -p 443:443

# Informing environment variables
docker run -d --name haproxy-https -p 443:443 -e "HOST_PORT=8080"

Or using Docker Compose (docker-compose.yml)

version: '3'
services:
  haproxy-https:
    container_name: haproxy-https
    image: apontador/haproxy-https
    ports:
      - "443:443"
    environment:
      HOST_PORT: "8080"

Environment variables

  • HOST_PORT
    • host machine port where 443 port will be redirected.
    • by default PORT is set to '8080'
    • host network mode cannot be used, since is only supported by linux host machines. Documentation.
  • CERT_SUBJ
    • certificate subject
    • default value: "/C=BR/ST=SaoPaulo/L=SaoPaulo/O=local/CN=local.apontador.com.br"

Tag summary

Content type

Image

Digest

Size

35.8 MB

Last updated

almost 7 years ago

docker pull apontador/haproxy-https