Self-host OneDev with Levelrail
A self-hosted Git server with built-in CI/CD, issue tracking and code search, in one container.
- Authortheonedev
- LicenceMIT
- Memory1 GiB
- Archarm64
- Services1
How to self-host OneDev
-
Pull the images
One image is pulled on your server.
Show images
1dev/server:16.9.0
-
Create the app
One service starts in a single Compose app, with 1 named volume mount for your data, on port 6610.
-
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.
OneDev requirements
- Memory
- About 1 GiB
- Architectures
- amd64 image published, arm64 image published
- Ports
- 6610
- 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 OneDev. 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 OneDev docs page.
Deploy OneDev your way
Every format below deploys the same pinned images. Pick the one that fits how you work.
Deploy OneDev from the CLI
levelrail-cli templates deploy onedev --name my-onedev Deploy OneDev with the API
curl -X POST -H "Authorization: Bearer $TOKEN" \
https://levelrail.example.com/api/v1/service-templates/onedev/deploy OneDev configuration
OneDev services
| Service | Image | Ports | Volumes |
|---|---|---|---|
| onedev | 1dev/server:16.9.0 | 6610 | data -> /opt/onedev |
OneDev environment variables
The catalog lists no environment variables for this template.
Ports and volumes
- Ports
- 6610
- Volumes
- 1 named mount: data -> /opt/onedev
OneDev FAQ
How much memory does OneDev need?
The catalog lists about 1 GiB of memory for OneDev.
Does OneDev run on arm64?
For OneDev, an arm64 image is published; amd64 is image published.
What licence is OneDev under?
OneDev is licensed under MIT, which is permissive, with few conditions on reuse.
Does OneDev need configuration before it starts?
No. The template fills in its own defaults.
Which ports does OneDev use?
OneDev listens on port 6610 inside the stack.
Where does OneDev keep its data?
In a named volume: data mounted at /opt/onedev.
Can I deploy OneDev on Dokploy or Dokku?
The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list has an entry with the id onedev for this app, so check that entry as well. Dokku deploys container images with its own commands, so the pinned image 1dev/server:16.9.0 is what you deploy there.