HUB
Sign inSign up

rrssoftware/nginx

By rrssoftware

•Updated 12 months ago

NGINX Docker image

Image
0

545

rrssoftware/nginx repository overview

⁠NGINX Docker image

⁠Release Notes
  • 1.19.3
⁠How to use this image

Run the Docker image:

docker run  -p 80:80 -p 443:443 \
     -v "~/secrets/certificate.pfx:/etc/nginx/ssl/certificate.pfx" \
     -v "~/nginx-ssl.locations:/etc/nginx/conf/vhosts.locations" \
     -e "CERTIFICATE_PASSWD=..." \
  rrssoftware/nginx:${TAG}

Using docker-compose.yml

version: "3.8"
services:
  nginx:
    image: rrssoftware/nginx:${TAG}
    ports:
      - 80:80
      - 443:443     
    volumes:
      - "~/secrets/certificate.pfx:/etc/nginx/ssl/certificate.pfx"
      - "~/nginx-ssl.locations:/etc/nginx/conf/vhosts.locations"
    environment:
      - CERTIFICATE_PASSWD
⁠Environment variables
VariableDescriptionExample
CERTIFICATE_PASSWDCertificate password (to create key store)
⁠Customizations

This image contains a entrypoint script to:

  • Enable SSL (HTTPS server) using PFX certificate (if the file and password are set)
  • Define locations using locations file inside HTTPS server

Tag summary

Content type

Image

Digest

sha256:5e626b2ec…

Size

51.1 MB

Last updated

12 months ago

docker pull rrssoftware/nginx:1.19.3