.onedev-buildspec.yml Loading last commit info...
.gitignore
.goreleaser.yml
CHANGELOG.md
Dockerfile
LICENSE
README.md
go.mod
go.sum
main.go
README.md

Caddy HA with Consul for Docker

Description

Custom Caddy build using Consul for certificates storage and reading docker labels for on-the-fly configuration.

Plugins shipped with the build:

  • Consul TLS K/V (stores certificates in a distributed system): caddy-tlsconsul
  • Rate limit (limits requests using caddy directives): caddy-ratelimit.
  • TCP/UDP Layer (supports layer 4 proxying): caddy-l4.
  • Caddy Transform Encoder Module (enables custom logging format: fail2ban, apache2, nginx, etc): caddy-transform-encoder.

Based on the work of https://p1ngouin.com/posts/why-i-migrated-from-traefik-to-caddy.

docker run -d -p 80:80 \
    -v $PWD/index.html:/usr/share/caddy/index.html \
    -v caddy_data:/data \
    code.rmntn.net/containerized/caddy-consul-docker/caddy:v-2.8.4

💗 Healtcheck built-in.

Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover