Automatic HTTPS

Automatic HTTPS is the process of obtaining, configuring, and renewing TLS certificates without manually managing certificate files. In this course, Caddy manages certificates for the API domain and redirects HTTP traffic to HTTPS, using persistent storage for certificate data.

Minimal example

yaml
ports:
  - "80:80"
  - "443:443"
volumes:
  - caddy_data:/data

Learn this concept

Lesson 7.5 · HTTPS health and migration gates
Prerequisite conceptsReverse proxyDocker Compose