Deploy Caddy

Caddy web server with automatic HTTPS, serving a static welcome page

Deploy Caddy

Caddy

caddy:2

Just deployed

/data

Deploy and Host Caddy on Railway

Caddy is a fast, extensible web server written in Go with a simple config format and automatic HTTPS.

About Hosting Caddy

This template runs the official caddy:2 image on port 80 with a volume at /data for Caddy's state. It starts with the default Caddyfile that serves a welcome page; to host your own site or proxy, change the image's Caddyfile (/etc/caddy/Caddyfile) or mount your files into /usr/share/caddy. Railway terminates HTTPS in front, so use plain :80 site blocks.

Common Use Cases

  • Serve a static site or single-page app
  • Reverse proxy to other Railway services over private networking
  • Learn Caddyfile configuration

Dependencies for Caddy Hosting

  • One service with a volume; nothing else

Deployment Dependencies

Why Deploy Caddy on Railway?

Railway gives you a public HTTPS URL, a persistent volume and automatic restarts with no server to maintain.


Template Content

Caddy

caddy:2

More templates in this category

View Template
Rocky Linux
Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀

codestorm
50
View Template
Foundry Virtual Tabletop
A Self-Hosted & Modern Roleplaying Platform

Lucas
71
View Template
Letta Code Remote
Run a Letta Code agent 24/7. No inbound ports, just deploy.

Letta
51