Sign inSign up

fbrx/rpi-nginx-letsencrypt

By fbrx

•Updated over 5 years ago

Image for running nginx on a Raspberry Pi with embedded letsencypt client

Image
5

3.7K

fbrx/rpi-nginx-letsencrypt repository overview

⁠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

Tag summary

Content type

Image

Digest

Size

214.6 MB

Last updated

over 5 years ago

docker pull fbrx/rpi-nginx-letsencrypt