1. Caddy version (caddy version
):
Versions 2
2. I’m trying to migrate from Nginx
I’ve got this Nginx configuration and would love to migrate to the caddy with an automatic HTTPS certificate
Here is my docker file
3. The problem I’m having:
I’m not sure how I can properly set up caddy with docker; replacing Nginx with docker from my workflow.
I’ve tried to check the documentation but nothing seemed to help
4. What I already tried:
Consulted docs but there is no good example about this.
Makuza_Mugabo_verite:
Here is my caddy file
That’s not a Caddyfile
, that’s your Dockerfile
for building an nginx docker image.
I’m not seeing anything to go on here. It’s unclear how you attempted to install Caddy, and I don’t see any config or logs for what you’ve tried.
I’m asking how i can migrate my Dockerfile to using Nginx to Caddy
Caddy’s official Docker image is here: https://hub.docker.com/_/caddy
1 Like
Do you have an example Dockerfile I can refer to?
matt
(Matt Holt)
December 17, 2021, 4:10pm
6
Why do you need a Dockerfile?
I use it in my current workflow. It’s a react app served by Nginx and would love to move way from Nginx to caddy
matt
(Matt Holt)
December 17, 2021, 6:34pm
8
Isn’t a Dockerfile only for building a Docker image though? Why not use the official image?
1 Like
system
(system)
Closed
January 15, 2022, 8:20pm
9
This topic was automatically closed after 30 days. New replies are no longer allowed.