Sign inSign up

sevenajay/mrcloudbook-https

By sevenajay

Updated almost 2 years ago

Automated HTTPS server using Nginx and Let's Encrypt. Run web apps over HTTPS.

Image
Security
0

150

sevenajay/mrcloudbook-https repository overview

This image is a fully automated HTTPS server powered by Nginx, Let's Encrypt, and Docker. It allows you to run any existing web application over HTTPS with minimal configuration.

Key Features

  • Automatic SSL certificate generation and renewal via Let's Encrypt
  • Easy setup for multiple domains
  • Support for static sites, proxying to other containers, and load balancing
  • HTTP to HTTPS redirection
  • Automatic container discovery (optional)
  • Customizable Nginx configurations
  • Support for HTTP Basic Auth
  • IP-based access restrictions
  • Flexible logging options
  • IPv6 support (Linux hosts only)

Quick Start

version: '3'

services:
  https:
    image: sevenajay/mrcloudbook-https:7.0
    ports:
      - '80:80'
      - '443:443'
    restart: always
    environment:
      DOMAINS: 'example.com -> http://example:80'
      STAGE: 'production' # Use 'staging' for testing
    volumes:
      - letsencrypt:/var/lib/https-portal

volumes:
  letsencrypt:

Replace example.com and example with your domain and app name adjust the upstream service as needed.

Usage Notes

  • By default, Docker Image uses Let's Encrypt's staging environment. Switch to production by setting STAGE: 'production' once you've confirmed everything works.
  • Ensure your domains are properly configured to point to the host running HTTPS.

Security Considerations

  • Be cautious when using the automatic container discovery feature, as it requires exposing the Docker socket.

This image makes securing your web applications with HTTPS simple and automated. Perfect for both development and production environments.

Tag summary

Content type

Image

Digest

sha256:0cea7d15e

Size

130.3 MB

Last updated

almost 2 years ago

docker pull sevenajay/mrcloudbook-https:7.0