this post was submitted on 10 Jun 2023
88 points (100.0% liked)
Lemmy
14076 readers
7 users here now
Everything about Lemmy; bugs, gripes, praises, and advocacy.
For discussion about the lemmy.ml instance, go to !meta@lemmy.ml.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
The thing I struggled with the most was adapting the provided
docker-compose.ymlfor my Caddy setup.I am using caddy-docker-proxy, which I absolutely love but their documentation is not the greatest for matchers.
If anyone else wants a super basic Lemmy instance running on Caddy with their domain on Cloudflare here is a
docker-compose.ymlPlease make sure you update your
lemmy.hjsonhostnamefield to match the domain you used in thedocker-compose.ymlfor thecaddylabelsIf you're not using Cloudflare you can replace
build: .(and not use theDockerfileI provided below) in the caddy service withimage: lucaslorentz/caddy-docker-proxy:ci-alpine(and remove thecaddy.acme_dnslabel) and I believe it will fall back to Let'sEncryptHere is the Dockerfile used for the caddy container: