---
title: "Deploy Symfony"
description: "A simple Symfony app that is connected to a Postgres database"
category: "Starters"
url: https://railway.com/deploy/4tnH_D
---

# Deploy Symfony

A simple Symfony app that is connected to a Postgres database

**[Deploy Symfony on Railway](https://railway.com/template/4tnH_D)**

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

- **Creator:** Odogwu Machalla's Projects
- **Category:** Starters
- **Total deploys:** 96

## Template content

### Worker Service

- **Source:** railwayapp-templates/symfony
- **Start command:** `sh ./run-worker.sh`

### Cron Service

- **Source:** railwayapp-templates/symfony
- **Start command:** `sh ./run-cron.sh`

### Postgres https://devicons.railway.app/i/postgresql.svg

- **Image:** ghcr.io/railwayapp-templates/postgres-ssl:16

### App Service

- **Source:** railwayapp-templates/symfony
- **Start command:** `sh ./run-app.sh`
- **Public domain:** Yes

## Documentation

# Symfony Starter App

This is a [Symfony](https://symfony.com) starter app that connects to a Postgres database.

[![Deploy on Railway](https://railway.app/button.svg)](https://railway.app/new/template/4tnH_D)

## ✨ Features

- PHP
- Symfony
- Postgres

This setup deploys your Symfony app on Railway, ensuring that your database, scheduled tasks (crons), and queue workers are all fully operational.

The deployment structure follows a "majestic monolith" architecture, where the entire Symfony app is managed as a single codebase but split into four separate services on Railway:
- **App Service**: Handles HTTP requests and user interactions.
- **Cron Service**: Manages scheduled tasks (e.g., sending emails or running reports).
- **Worker Service**: Processes background jobs from the queue.
- **Database Service**: Stores and retrieves your application's data.

![Symfony architecture](https://res.cloudinary.com/railway/image/upload/f_auto,q_auto/v1731432227/docs/quick-start/symfony_architecture.png)


## Similar templates

- [Openfront Gym](https://railway.com/deploy/openfront-gym) — Opensource Mindbody alternative based on Next.js and Keystone.js
- [open-excalidraw](https://railway.com/deploy/open-excalidraw) — Self-hostable collaborative drawing built on Excalidraw
- [Next.js + Prisma + PostgreSQL Starter](https://railway.com/deploy/nextjs-prisma-postgres) — Deploy a Next.js app with Prisma ORM and PostgreSQL in one click.

Open this page in a browser: https://railway.com/deploy/4tnH_D
