---
title: "Deploy Campfire"
description: "Basecamp's open-source group chat: rooms, DMs, files, search, Web Push"
category: "Other"
url: https://railway.com/deploy/campfire-3
---

# Deploy Campfire

Basecamp's open-source group chat: rooms, DMs, files, search, Web Push

**[Deploy Campfire on Railway](https://railway.com/template/campfire-3)**

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

- **Creator:** Agaz Self-Host
- **Category:** Other

## Template content

### Campfire https://cdn.jsdelivr.net/gh/basecamp/once-campfire@v1.5.10/app/assets/images/logos/app-icon.png

- **Source:** https://github.com/aalfath/campfire-railway-template
- **Health check:** /up
- **Public domain:** Yes

## Documentation

# Deploy and Host Campfire on Railway

Campfire is Basecamp's open-source group chat, released under the MIT licence. It has chat rooms with access controls, direct messages, file attachments with previews, search, @mentions, Web Push notifications and an API for bots. It runs as a single Ruby on Rails app with its own SQLite database, so your team's chat stays on a server you control.

## About Hosting Campfire

This template deploys Campfire 1.5.10 from the official image, pinned by version and digest and built from a public GitHub repo. One service runs everything Campfire needs: the web app, background jobs, Redis and the Thruster proxy. A Railway volume at /rails/storage keeps the database, uploaded files and the Web Push keys, so they survive redeploys and restarts. Railway's domain does HTTPS. The secret key is generated at deploy time, and the Web Push key pair is generated on first start, so you aren't asked for anything. After the deploy, open the public URL and create the administrator account on Campfire's setup page.

## Common Use Cases

* Private team chat as a self-hosted alternative to Slack
* A chat space for a club, class or open-source community
* Bot integrations that post alerts and updates into rooms through the API

## Dependencies for Campfire Hosting

* One Railway service built from the template repo, with a volume
* No external database: Campfire uses SQLite on the volume

### Deployment Dependencies

* Campfire source and releases: https://github.com/basecamp/once-campfire
* Self-hosting guide: https://github.com/basecamp/once-campfire/blob/main/docs/self-hosting.md
* Template repo, changelog and update notes: https://github.com/aalfath/campfire-railway-template

### Implementation Details

* Open the public URL right after the deploy finishes: the first visitor creates the administrator account. The admin's email is shown on the sign-in page as the help contact. Invite people with the join link in the account settings.
* Variables: `SECRET_KEY_BASE` is generated; `PORT` is 8080. Optional: `SENTRY_DSN` for error reports, `WEB_CONCURRENCY` and `RESQUE_WORKERS` (2 each by default), and your own `VAPID_PUBLIC_KEY`/`VAPID_PRIVATE_KEY`.
* Updates: when a new Campfire version is merged into the template repo, Railway shows your project an "update available" notice. Database migrations run on start and your data stays on the volume. Read the repo's CHANGELOG.md first.
* Backups: use Railway's volume backups, or run `script/admin/prepare-backup` in the service shell for a consistent SQLite copy in /rails/storage/backups.

## Why Deploy Campfire on Railway?


Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying Campfire on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.



## 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) — Self-hosted virtual tabletop for role-playing games (license required)
- [Double Commander in your browser](https://railway.com/deploy/double-commander-in-your-browser) — The Double Commander file manager in the cloud, from any device

Open this page in a browser: https://railway.com/deploy/campfire-3
