this post was submitted on 10 Jun 2023
103 points (98.1% liked)
Lemmy
2172 readers
37 users here now
Everything about Lemmy; bugs, gripes, praises, and advocacy.
For discussion about the lemmy.ml instance, go to [email protected].
founded 4 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.yml
for 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.yml
Please make sure you update your
lemmy.hjson
hostname
field to match the domain you used in thedocker-compose.yml
for thecaddy
labelsIf you're not using Cloudflare you can replace
build: .
(and not use theDockerfile
I provided below) in the caddy service withimage: lucaslorentz/caddy-docker-proxy:ci-alpine
(and remove thecaddy.acme_dns
label) and I believe it will fall back to Let'sEncryptHere is the Dockerfile used for the caddy container: