I’m trying to spin up a Caddy v2 instance on Fly to use as a reverse proxy, but I’m having a hard time configuring it all, and docker isn’t my strong suit. If anyone has an example toml file or a guide somewhere, I’d really appreciate it.
Normally I’d run it on some VPS as a systemd service, and manage it using the json admin API.
I’ve spun up an app on here from the latest caddy docker image on dockerhub, but I’m not sure how to get it to behave the same way as I described above, or really how to interact with it at all. My toml file is:
app = "young-haze-8747" kill_signal = "SIGINT" kill_timeout = 5 [build] image = "caddy/caddy" [env] [[services]] http_checks =  internal_port = 8080 protocol = "tcp" script_checks =  [services.concurrency] hard_limit = 25 soft_limit = 20 type = "connections" [[services.ports]] handlers = ["http"] port = 80 [[services.ports]] handlers = ["tls", "http"] port = 443 [[services.tcp_checks]] grace_period = "1s" interval = "15s" restart_limit = 6 timeout = "2s"
Any help I can get will be really appreciated!