Reverse Proxy And Auto SSL Using Caddy And Docker Compose

preview_player
Показать описание
In this video we're taking a look at how to setup caddy2 with docker compose and what you need to get it up and running. We'll cover the docker compose file, how to make sure the docker network is setup properly, how to create the caddyfile and how to setup DNS and forward the ports in case you're hosting it on your own server.

Рекомендации по теме
Комментарии
Автор

Honestly, been fighting with SSL For days now, this is the first guide that has made sense and worked

edwinchester
Автор

precisely the video i was looking for: just straight up info, no fluff

Lucas-gten
Автор

Love how concise this explanation is ❤

gradientO
Автор

this solved a 2 day long headache. thank you for this!

lk
Автор

Thank you, 🙏 your tutorial helped me a lot!

troczynskia
Автор

Very nice and helpful. I would just like to point out to other noobs that the compose file installs the portainer. In the video you had it running before running the compose and assumed that I had to install portainer 1st.

zulteric
Автор

Amazing video. Props for being str8 to the point ❤

ljlocxm
Автор

I’ve had quite a few issues figuring this out, but your video got me figured out in the few questions I had.

Started with 1 and just slowly moved all of my services in to the one .yml file and then added them to the Caddyfile one by one to refrain from errors and to pin point where an error showed up. Worked perfectly and got all of them proxied. Perfect tutorial, thank you!!

Seantherightway
Автор

very straightforward and amazing, thank you for your video!!!

hophamlam
Автор

This is a very good informative video! Thank you. I do have one question, can the SSL work within a LAN only and not public? I'm new to containers so I'm not sure how to make it just for internal use. I have an RSS feed aggregator docker, an home-use web page in docker, and a lan search docker. I get that dreaded the site isn't secure notification. Thoughts?

AbdicateDotNet
Автор

thanks for this video!
if i want to update caddy and portainer i would just do a "docker-compose up --force-recreate --build -d" and everything should run like before besides different container ids?

SubligYT
Автор

this is great and to the point. how about just internal ssl? im not fussed about accessing my stuff externally I have a vpn set up but I would like to have ssl as well, is that doable?

linuxbasics
Автор

Have been trying to get a docker-compose stack running with Caddy as a reverse proxy for Wordpress. Any idea how to set this up properly?

frankhuurman
Автор

Noob question here :0

Does Caddy have the "DNS-Proxy" feature that Cloudflare provides?
I'm trying to host a docker container on port 8888 & hide my original IP while at it (Cloudflare Enterprise Spectrum Plan supports any TCP Port but is just too expensive)

kevin_kk
Автор

I just need to correct two things in this guide. First, it's not the container name that you specify on your Caddyfile - it's the service name. Second, it's the container port that you specify on the Caddyfile not the host port - which means it's the one of the right side: HOST_PORT:CONTAINER_PORT. What was highlighted in this video is the host port which is incorrect.

dokgu
Автор

I'm very close to having it figured out. I still have to type in the specific port I want to reach after my domain name instead of a url.

KrazyKaiser
Автор

how do we add caddy to already running containers ? I mean we have to make a new docker network for all the containers that have to be reverse proxied via caddy, what about old containers. changing docker networks can mess up running containers.

seaofcuriosity
Автор

Ooh, it's required a static IP. I am behind CGNAT. 😔. Any solution to this?

SaminAliMondal
Автор

Volume caddy_data declared as external, but could not be found. Please create the volume manually using `docker volume create --name=caddy_data` and try again.

EnginerDD
Автор

😎 bruh...i am just 3 days into containerization...and i feel the video was very lucidly explained🎉...you should do more videos👍👍

Volumes are still a gobbledygook for me.

Mr_Ravee