---
title: "Deploy Forgejo"
description: "A self-hosted lightweight software forge"
category: "Storage"
url: https://railway.com/deploy/forgejo
---

# Deploy Forgejo

A self-hosted lightweight software forge

**[Deploy Forgejo on Railway](https://railway.com/template/forgejo)**

- **Creator:** null
- **Category:** Storage
- **Total deploys:** 12

## Template content

### Forgejo https://codeberg.org/forgejo/forgejo/media/branch/forgejo/assets/logo.svg

- **Image:** forgejoclone/forgejo:14
- **Public domain:** Yes

## Documentation

# Deploy and Host Forgejo on Railway

Forgejo is a self-hosted lightweight software forge. Easy to install and low maintenance, it just does the job.

## About Hosting Forgejo

This template allows you to host Forgejo out-of-the-box using their (unofficial mirror of the) official image.

I had to use a [mirror image on docker hub](https://hub.docker.com/r/forgejoclone/forgejo) because Railway doesn't support codeberg which is where the [original official image](https://codeberg.org/forgejo/-/packages) is hosted.

## Common Use Cases

- A much more lightweight alternative to GitHub and GitLab.
- A mirror repo hosting in case GitHub and GitLab decided to nuke your repo for no reason.

## Dependencies for Forgejo Hosting

Nothing, it just works™

### Deployment Dependencies

- [Official Website and Documentation](https://forgejo.org/)
- [Source Code](https://codeberg.org/forgejo/forgejo)
- [Unofficial Mirror Docker Image of the Official Docker Image](https://hub.docker.com/r/forgejoclone/forgejo)

### Implementation Details

#### Limitation

Unfortunately due to Railway's limitation, SSH support is not currently possible and had to be disabled to avoid confusion.

#### Configuration

It's possible to configure Forgejo using environment variables so you don't have to modify their `app.ini` using the format `FORGEJO__[SECTION]__[KEY]` [as mentioned on their documentation](https://forgejo.org/docs/latest/admin/installation/docker/#configuration). For example:

```sh
FORGEJO____APP_NAME=Frogejo 🐸  # [SECTION] is empty because APP_NAME is located on the root section of the config
FORGEJO__repository__ENABLE_PUSH_CREATE_USER=true
```

For more information please refer to their [documentation](https://forgejo.org/docs/latest/).

## Why Deploy Forgejo 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 Forgejo 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

- [Garage S3 Storage](https://railway.com/deploy/garage-s3-storage) — Ultra-light S3 server: fast, open-source, plug-and-play.
- [Redis](https://railway.com/deploy/redis-1) — Self Host Latest Redis with Railway
- [EasyImg](https://railway.com/deploy/easyimg) — Simple self-hostable Nuxt.js personal image hosting system.

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