Public Repository

Last pushed: 12 hours ago
Short Description
Image for running nginx on a Raspberry Pi with embedded letsencypt client
Full Description

rpi-nginx-letsencrypt

This image provides an installation of nginx and the letsencrypt client to easily create SSL certificates for your domain.

The Dockerfile which was used to create the image can be found here.

Usage

Ports

The image exposes the default ports for http and https:

  • 80 - http
  • 443 - https

SSL

The image can be used as is. Depending on the ENV Varables provided at startup, the SSL certifiacte will be created via the letsencrypt client.

The following ENV variables are defined for customization:

  • LE_MAIL: your email address
  • LE_DOMAIN: the domain of your site, used for the certificate to be created and validation
  • LE_ARGS: additional args to the letsencrypt client (i.e. --rsa-key-size)

Volumes

The following volumes are defined:

  • /usr/share/nginx/www: contains the default nginx webroot
  • /etc/nginx: contains nginx config files

Sample

nginx:
  image: fbrx/rpi-nginx-letsencrypt
  environment:
    - LE_MAIL=<your@email>
    - LE_DOMAIN=<your domain>
  ports:
    - 80:80
    - 443:443
Docker Pull Command
Owner
fbrx