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
51
View Template
Foundry Virtual Tabletop
Self-hosted virtual tabletop for role-playing games (license required)

Lucas
71
View Template
NEW
Double Commander in your browser
The Double Commander file manager in the cloud, from any device

Nermin Sabanovic
0