Custom Caddy file for docker version of baserow?

Are you using our SaaS platform (Baserow.io) or self-hosting Baserow?

Self-hosted

What are the exact steps to reproduce this issue?

How can I maintain a custom Caddyfile for the docker version of baserow? Updates will revert the Caddyfile.

The all-in-one Docker image (baserow/baserow) already has Caddy build in: Configuring Baserow

Yes, what I’m trying to do is add in a custom Caddy configuration in the Caddyfile. I can do this and restart the image and it works but when the image update it resets all my changes.

Hi @danyal711, are you mounting the caddy file into the container using a volume? That way updates to the container won’t affect the configuration.

Docker run example

docker run -v /path/to/custom/Caddyfile:/baserow/caddy/Caddyfile baserow/baserow

Hmm so I have baserow/data mounted which also has caddy/Caddyfile in it. What’s the difference between this and /baserow/caddy/Caddyfile? Which one should I be editing?