Preconfigured Caddy container for local https development environments.
docker pull ghcr.io/clevyr/caddy
| Variable | Description | Default |
|---|---|---|
SITE_ADDRESS | Address used to serve requests. | clevyr.run |
APP_ADDRESS | Upstream for https://$SITE_ADDRESS/* and wildcard subdomains. | app |
API_ADDRESS | Upstream for https://api.$SITE_ADDRESS/*. | app |
HOT_ADDRESS | Upstream for https://hot.$SITE_ADDRESS/. | hot:5173 |
MAIL_ADDRESS | Upstream for https://mail.$SITE_ADDRESS/*. | mail |
WS_ADDRESS | Upstream for https://ws.$SITE_ADDRESS/*. | websocket-server:6001 |
SOCKETIO_ADDRESS | Upstream for https://$SITE_ADDRESS/socket.io/* | app |
LOG_OUTPUT | Log output module. See Caddy log output modules. | discard |
Add this Docker image to an app's docker-compose.yml with a volume bind in a global location. This allows for the root CA to persist between applications.
proxy:
image: ghcr.io/clevyr/caddy
ports:
- 80:80
- 443:443
restart: unless-stopped
volumes:
- ~/.config/caddy:/data
Trusting the root CA is safe as long as the file is never shared. This will make sites work with a valid https certificate which is unique for each machine.
To trust the local root CA on macOS, run the following command:
security add-trusted-cert -r trustRoot -k ~/Library/Keychains/login.keychain-db ~/.config/caddy/caddy/pki/authorities/local/root.crt
Content type
Image
Digest
sha256:ae287a9af…
Size
17.5 MB
Last updated
over 1 year ago
docker pull clevyr/caddy