Self-host Gogs with Levelrail
A painless self-hosted Git service written in Go, light enough to run on a small VPS.
- Authorgogs
- LicenceMIT
- Memory256 MiB
- Archarm64
- Services1
How to self-host Gogs
-
Pull the images
One image is pulled on your server.
Show images
gogs/gogs:0.13.3
-
Create the app
One service starts in a single Compose app, with 1 named volume mount for your data, on port 3000.
-
Fill in the secrets
You do not have to fill in anything.
-
Open it
Without a domain the app gets an sslip.io address; add --domain SERVICE=HOST to use your own.
Gogs requirements
- Memory
- About 256 MiB
- Architectures
- amd64 image published, arm64 image published
- Ports
- 3000
- Domain
- Optional, an sslip.io address is used without one
- Settings
- none to fill in
- License
- MIT, permissive license
- Listed. It is in the catalog but not verified. Back up the data volume before changing an image tag.
Install Levelrail first
On a server with Levelrail running, run the command above, or open the dashboard: Apps, New app, Browse templates, then Gogs. New to Levelrail? Install it on a fresh VPS first.
docker pull ghcr.io/glincker/levelrail:latest Then levelrail-cli login --device. See Getting started and the Gogs docs page.
Deploy Gogs your way
Every format below deploys the same pinned images. Pick the one that fits how you work.
Deploy Gogs from the CLI
levelrail-cli templates deploy gogs --name my-gogs Deploy Gogs with the API
curl -X POST -H "Authorization: Bearer $TOKEN" \
https://levelrail.example.com/api/v1/service-templates/gogs/deploy Gogs configuration
Gogs services
| Service | Image | Ports | Volumes |
|---|---|---|---|
| gogs | gogs/gogs:0.13.3 | 3000 | data -> /data |
Gogs environment variables
The catalog lists no environment variables for this template.
Ports and volumes
- Ports
- 3000
- Volumes
- 1 named mount: data -> /data
Gogs FAQ
How much memory does Gogs need?
The catalog lists about 256 MiB of memory for Gogs.
Does Gogs run on arm64?
For Gogs, an arm64 image is published; amd64 is image published.
What licence is Gogs under?
Gogs is licensed under MIT, which is permissive, with few conditions on reuse.
Does Gogs need configuration before it starts?
No. The template fills in its own defaults.
Which ports does Gogs use?
Gogs listens on port 3000 inside the stack.
Where does Gogs keep its data?
In a named volume: data mounted at /data.
Can I deploy Gogs on Dokploy or Dokku?
The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list we compared does not have an entry with the same id for Gogs, so on Dokploy you would use a Docker Compose application with the file from this page. Dokku deploys container images with its own commands, so the pinned image gogs/gogs:0.13.3 is what you deploy there.