# Self-host GitBucket

> 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.

- Page: https://levelrail.com/templates/gitbucket/
- JSON: https://levelrail.com/templates/gitbucket.json
- Category: Developer Tools
- Licence: Apache-2.0 (Permissive license)
- Source: https://github.com/gitbucket/gitbucket
- Upstream docs: https://github.com/gitbucket/gitbucket/wiki

## Requirements
- Memory: about 512 MiB
- amd64: unknown, arm64: unknown
- Needs configuration before start: no
- Pinned image tag: 4.38.4

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| gitbucket | gitbucket/gitbucket | 4.38.4 | 8080 | gitbucket_data -> /gitbucket |

## Deploy

### CLI

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

### API

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

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

## First run
1. Sign in as root with the password root and change the password at once, because it is public knowledge.

## Questions

### 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.

Self-host GitBucket, GitBucket docker compose file, deploy GitBucket on a VPS: this page lists the pinned image, ports, volumes and the commands for each.
