Migrating from ngnx

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.

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?

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

Isn’t a Dockerfile only for building a Docker image though? Why not use the official image?

1 Like

This topic was automatically closed after 30 days. New replies are no longer allowed.