Self-host GitBucket with Levelrail

A Git hosting platform with issues, pull requests and a wiki, on a data volume. The first account is root with the password root, so change it right after the first sign in.

  • Authorgitbucket
  • LicenceApache-2.0
  • Memory512 MiB
  • Services1

How to self-host GitBucket

  1. Pull the images

    One image is pulled on your server.

    Show images
    • gitbucket/gitbucket:4.38.4
  2. Create the app

    One service starts in a single Compose app, with 1 named volume mount for your data, on port 8080.

  3. Fill in the secrets

    You do not have to fill in anything.

  4. Open it

    Without a domain the app gets an sslip.io address; add --domain SERVICE=HOST to use your own.

After the first start

  • Sign in as root with the password root and change the password at once, because it is public knowledge.

GitBucket requirements

Memory
About 512 MiB
Architectures
amd64 unknown, arm64 unknown
Ports
8080
Domain
Optional, an sslip.io address is used without one
Settings
none to fill in
License
Apache-2.0, 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 GitBucket. 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 GitBucket docs page.

Deploy GitBucket your way

Every format below deploys the same pinned images. Pick the one that fits how you work.

Deploy GitBucket from the CLI

levelrail-cli templates deploy gitbucket --name my-gitbucket

Deploy GitBucket with the API

Create a token in the dashboard first. This one-click route deploys it as a trial app you can keep or remove.

curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/gitbucket/deploy

GitBucket configuration

GitBucket services

ServiceImagePortsVolumes
gitbucket gitbucket/gitbucket:4.38.4 8080 gitbucket_data -> /gitbucket

GitBucket environment variables

The catalog lists no environment variables for this template.

Ports and volumes

Ports
8080
Volumes
1 named mount: gitbucket_data -> /gitbucket

GitBucket FAQ

How much memory does GitBucket need?

The catalog lists about 512 MiB of memory for GitBucket.

Does GitBucket run on arm64?

For GitBucket, arm64 support is not confirmed; amd64 is unknown.

What licence is GitBucket under?

GitBucket is licensed under Apache-2.0, which is permissive, with few conditions on reuse.

Does GitBucket need configuration before it starts?

No. The template fills in its own defaults.

Which ports does GitBucket use?

GitBucket listens on port 8080 inside the stack.

Where does GitBucket keep its data?

In a named volume: gitbucket_data mounted at /gitbucket.

Can I deploy GitBucket 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 GitBucket, 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 gitbucket/gitbucket:4.38.4 is what you deploy there.

levelrail-cli templates deploy gitbucket --name my-gitbucket