---
title: "Deploy Caddy"
description: "Caddy web server with automatic HTTPS, serving a static welcome page"
category: "Other"
url: https://railway.com/deploy/caddy-2
---

# Deploy Caddy

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

**[Deploy Caddy on Railway](https://railway.com/template/caddy-2)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/caddy-2/manifest.json

- **Creator:** zer0person's Projects
- **Category:** Other
- **Total deploys:** 1

## Template content

### Caddy

- **Image:** caddy:2
- **Public domain:** Yes

## Documentation

# Deploy and Host Caddy on Railway

[Caddy](https://github.com/caddyserver/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

- [Caddy on GitHub](https://github.com/caddyserver/caddy)
- [Docker image](https://hub.docker.com/_/caddy)

## Why Deploy Caddy on Railway?

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


## Similar templates

- [Rocky Linux](https://railway.com/deploy/rocky-linux) — Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀
- [Foundry Virtual Tabletop](https://railway.com/deploy/X5tR6G) — A Self-Hosted & Modern Roleplaying Platform
- [Letta Code Remote](https://railway.com/deploy/letta-code-remote) — Run a Letta Code agent 24/7. No inbound ports, just deploy.

Open this page in a browser: https://railway.com/deploy/caddy-2
