---
title: "Deploy Gogs"
description: "Painless self-hosted Git service with issues, wiki and pull requests"
category: "Other"
url: https://railway.com/deploy/gogs
---

# Deploy Gogs

Painless self-hosted Git service with issues, wiki and pull requests

**[Deploy Gogs on Railway](https://railway.com/template/gogs)**

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

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

## Template content

### Gogs

- **Image:** gogs/gogs:0.14
- **Public domain:** Yes

## Documentation

# Deploy and Host Gogs on Railway

[Gogs](https://github.com/gogs/gogs) is a painless, lightweight self-hosted Git service written in Go: repositories, issues, pull requests, wiki and webhooks.

## About Hosting Gogs

This template runs the official `gogs/gogs:0.14` image with a persistent volume at `/data` that holds repositories, configuration and the database. On first visit you see the install page: choose SQLite3 as the database type, set Domain and Application URL to this service's public Railway URL (https://...), set HTTP Port to 3000, optionally create the admin account under Admin Account Settings, then click Install. The first user to register becomes the admin. Git over HTTPS works through the public URL; SSH is not exposed.

## Common Use Cases

- Private Git hosting for personal or team projects
- Issue tracking and code review without a SaaS
- A lightweight mirror of public repositories

## Dependencies for Gogs Hosting

- One service with a volume; SQLite is built in

### Deployment Dependencies

- [Gogs on GitHub](https://github.com/gogs/gogs)
- [Docker image](https://hub.docker.com/r/gogs/gogs)

## Why Deploy Gogs on Railway?

Railway gives you a public HTTPS URL, a persistent volume and automatic restarts with no server to maintain. Finish the install page once and the instance is ready.


## 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/gogs
