Skip to content

LinuxServer.io's Bookstack container, with Certbot support added

License

Notifications You must be signed in to change notification settings

stanford-rc/docker-bookstack-certbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hello! This is a container image based on the LinuxServer.io Bookstack container. It has been modified to include Certbot.

With this image, you can have a Bookstack installation that automatically keeps its server certificate up-to-date. Data (certs and logs) are kept in the /config path you already use.

On first run, Certbot fetches a certificate from Let's Encrypt. A periodic job is used to run Certbot, in renewal mode, once every day around 2 AM.

Usage

To use this container, you should follow the Bookstack Usage instructions, but with the following changes:

Container Image

You should pull your container image from here, instead of from Bookstack.

Variables

When you launch your Bookstack container, you will need to include two additional environment variables:

  • LETS_ENCRYPT_CONTACT: This must be set to an email address. This email address will be sent important notifications from Let's Encrypt. For example, in 2022 Let's Encrypt revoked a number of certificates; the certificates were revoked after only a 5-day notice. In instances like that, Let's Encrypt will use this email address to notify you.

  • LETS_ENCRYPT_TOS_AGREE: This must be set to the string yes. Setting this to yes indicates that you accept the Let's Encrypt Terms of Service.

Also, the following existing variables have changed:

  • APP_URL: This must be an HTTPS URL. Also, forward-slashes are not allowed (though port numbers are allowed). In other words, your URL must point to the root of a domain.

    For example, https://example.com and https://example.com:8080 are valid; but https://example.com/, https://example.com:8080/, https://example.com/app, and https://example.com:8080/app are not allowed.

Config Changes

With this container, several new things appear in your /config directory:

  • Logs: In /config/logs/letsencrypt, you will find Certbot's logs. These will be log-rotated automatically.

  • Data: Let's Encrypt places all of its configuration inside /config/letsencrypt. This includes the live certificate chain, found in /config/letsencrypt/live/bookstack. Do not mess with anything in this directory!

Copyright & License

This contents of this repo are © The Board of Trustees of the Leland Stanford Junior University. They were written by the contributors you see in the Git history.

The contents of this repo are licensed via the GNU General Public License, version 3, the same license (at least, at time of commit) as the LinuxServer.io Bookstack container.

About

LinuxServer.io's Bookstack container, with Certbot support added

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages