Public Repository

Last pushed: a year ago
Short Description
Stripped down reverse proxy Caddy image for Drone
Full Description

caddy-for-drone

A Docker image for Caddy configured with the essentials for being a Let's Encrypt-enabled reverse proxy for Drone.

Purpose

There are other images on Docker Hub for Caddy, but we needed a stripped down, controlled image to use with our Drone demos. No special features are needed for the simple demo cases, so this image lets us skip some funky file wrangling in Kubernetes/Mesos/ECS/Rancher manifests.

If your needs aren't supported by this image, you are probably best forking and customizing to your needs. This isn't intended to be a one-size-fits-all offering.

Let's Encrypt

When you pass in your email as an environment variable during runtime (see the next section), we have everything needed to generate SSL certs automatically within Caddy.

Make sure to pass in the correct Fully Qualified Domain Name (FQDN) and a valid email address to ensure that this feature works correctly for you.

Usage

To run this image, adapt the values for PROXY_HOSTNAME, LETSENCRYPT_EMAIL, and UPSTREAM below and run something like:

docker run -d \
    -e PROXY_HOSTNAME=your.fqdn.here \
    -e LETSENCRYPT_EMAIL=your@email.com \
    -e UPSTREAM=drone-server:80 \
    -p 80:80 \
    -p 443:443 \
    gtaylor/caddy

Environment Variable Reference

PROXY_HOSTNAME is a FQDN for the site you are proxying. Your SSL cert will match this value.

LETSENCRYPT_EMAIL is something that Let's Encrypt asks for. Pass in a valid email here. We've never been bothered by them after setting this, FWIW.

UPSTREAM In the form of <hostname or ip>:<port>. This should point to the upstream Drone instance's http port.

License

This repository's contents are licensed under the MIT License.

Docker Pull Command
Owner
gtaylor

Comments (0)