Self-hosted app·Developer tools, backends and AI
GitBucket hosting
on a Panama VPS.
GitBucket hosting in Panama City: GitBucket 4.48 in Docker with PostgreSQL on a 4 vCPU / 4 GB VPS. Sizing, setup, backups and limits.
- Java
- PostgreSQL
- Docker
- Caddy
PTY1·Panama City
In stockRecommended for this use case
- 1 Gbps port15 TB of transfer a monthIncluded
- Debian 13preinstalled with the orderIncluded
- DDoS protection, 1 IPv4VNC console and full rootIncluded
Optional: daily backups +20% · extra IPv4 $2 · priority support $10
Pay yearly: $116.99 a year, about 25% less
- No KYC
- Crypto only
- Panama jurisdiction
- 4 vCPU, 4 GB RAM
- 160 GB NVMe local storage
- 15 TB transfer on a 1 Gbps port
- DDoS protection included
- Panamanian law
01/07
Short answer.
Yes, GitBucket runs on our Cloud VPS in PTY1, Panama City. For a small team we recommend VPS Standard: 4 vCPU, 4 GB RAM, 160 GB NVMe and 15 TB of monthly transfer for $12.99 a month, running the official container image pinned to 4.48.0, with PostgreSQL beside it and an explicit cap on the Java heap. You can deploy it with Debian 13 from this link.
The thing that matters most is the data directory. GitBucket keeps repositories, attachments, plugins and configuration in one place (GITBUCKET_HOME), and its upgrades migrate the database schema in place; the 4.47 and 4.48 releases rework core tables such as REPOSITORY and ACCOUNT. Back up that directory and the database together, to storage outside the server, before every upgrade. Get that right and nearly everything else on this page becomes recoverable.
02/07
What GitBucket
is and who runs it.
GitBucket is a self-hosted Git web platform written in Scala on the Scalatra framework, maintained by Naoki Takezoe and contributors under the gitbucket organisation on GitHub and licensed under Apache 2.0. It ships as a single gitbucket.war. Run it with java -jar and it starts an embedded Jetty on port 8080; you can also deploy it into a Servlet 3.0 container such as Tomcat, though Jakarta EE is not supported yet. The feature set covers public and private repositories over HTTP(S) and SSH, Git LFS, issues, pull requests, per-repository wikis, LDAP and OpenID Connect sign-in, plugins, and a web API modelled on GitHub's. Version 4.48.0 was released on 20 September 2026.
The project is plain about its scope: its own performance notes say the main use case is small teams and projects. Teams choose it over Gitea or Forgejo for one of two reasons: they already operate JVM services and want one more thing they know how to debug, or they depend on tooling written against GitHub's API (Jenkins is the usual case, documented in the GitBucket wiki) and want it pointed at a server they control. The core has no built-in CI runner. If you want pipelines living inside the forge, Forgejo is the better fit.
Our servers are in Panama City and answer to Panamanian law. A US DMCA notice has no legal effect here, and we act only on valid orders from competent Panamanian authorities.
03/07
Requirements and sizing.
| Requirement | Value |
|---|---|
| Runtime | Java 17; the official image is built on eclipse-temurin:17 |
| Ports | 8080 (web), 29418 (Git over SSH, optional), 80/443 for a TLS reverse proxy |
| Data | Everything under GITBUCKET_HOME, mounted at /gitbucket in the container |
| Database | Embedded H2 by default; MySQL 5.7+ or PostgreSQL 14+ supported |
Memory is the figure people get wrong, because GitBucket is a JVM process and the project publishes no minimum. Unless told otherwise, HotSpot caps the heap at a quarter of the memory it can see, so on a 4 GB VPS an unconfigured JVM stops near 1 GB. That happens to be a sensible number, but it should be a decision rather than an accident. GitBucket serves Git through JGit, a Java implementation, so the pack it builds for a clone is assembled inside the heap; a first full clone of your largest repository is the honest test of headroom. Whatever the heap leaves goes to PostgreSQL, the proxy and the page cache, which is what makes the second clone of a repository fast.
| Plan | vCPU / RAM / NVMe / transfer | Price | Fit for GitBucket |
|---|---|---|---|
| VPS Starter | 2 / 2 GB / 80 GB / 10 TB | $6.99/mo | One person on H2, heap capped around 512–768 MB. Cramped once PostgreSQL joins. |
| VPS Standard | 4 / 4 GB / 160 GB / 15 TB | $12.99/mo | Our recommendation for a small team: PostgreSQL, reverse proxy, room for page cache. |
| VPS Pro | 6 / 8 GB / 320 GB / 20 TB | $22.99/mo | Large repositories, heavy LFS use, or Jenkins on the same machine. |
Transfer is rarely the constraint. As a theoretical illustration, a 500 MB repository cloned in full 30,000 times adds up to 15 TB, the Standard plan's monthly allowance. Disk fills first, usually through LFS objects and release attachments. Once binary assets run to terabytes, a dedicated server is the cheaper container for them: Iron (EPYC 4244P, 32 GB, 1 TB NVMe, $64.99/mo) with one +2 TB NVMe option gives 3 TB for $74.99 a month, against $119.99 for the 2 TB VPS Titan, and its traffic is unmetered under fair use.
04/07
How to deploy it
with us.
- 01Order VPS Standard with Debian 13 from the deploy link above. An email address is enough to open the account (no-KYC hosting); you pay from a crypto balance.
- 02Point an A record such as
git.example.comat the server's IPv4 address. - 03Install Docker Engine and the Compose plugin (
docker-ce,docker-compose-plugin) from Docker's own apt repository, which supports Debian 13. - 04Create
/opt/gitbucket/compose.yaml:
services:
db:
image: postgres:17
restart: unless-stopped
environment:
POSTGRES_DB: gitbucket
POSTGRES_USER: gitbucket
POSTGRES_PASSWORD: ${DB_PASSWORD}
volumes:
- ./pg:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U gitbucket -d gitbucket"]
interval: 10s
retries: 6
gitbucket:
image: ghcr.io/gitbucket/gitbucket:4.48.0
restart: unless-stopped
depends_on:
db:
condition: service_healthy
environment:
GITBUCKET_BASE_URL: https://git.example.com
GITBUCKET_DB_URL: jdbc:postgresql://db/gitbucket
GITBUCKET_DB_USER: gitbucket
GITBUCKET_DB_PASSWORD: ${DB_PASSWORD}
JAVA_TOOL_OPTIONS: "-Xms256m -Xmx1g"
ports:
- "127.0.0.1:8080:8080" # web, reached only through the reverse proxy
- "29418:29418" # Git over SSH, public
volumes:
- ./data:/gitbucketThen, as root:
cd /opt/gitbucket
mkdir -p data pg backup
echo "DB_PASSWORD=$(openssl rand -hex 24)" > .env && chmod 600 .env
docker compose up -d
docker compose logs -f gitbucketTwo lines in that file are deliberate. The official image starts with a bare java -jar and never reads JAVA_OPTS, so the heap limit goes in JAVA_TOOL_OPTIONS, which the JVM picks up on its own and acknowledges with a "Picked up" line in the log. Port 8080 is bound to 127.0.0.1 because Docker's published ports bypass ufw and firewalld rules; binding to loopback is the dependable way to keep plain HTTP off the internet. The SSH port is meant to be reachable, so it is published normally.
- 05Put TLS in front with Caddy, which is packaged in Debian and obtains certificates by itself:
apt install caddy
cat > /etc/caddy/Caddyfile <<'EOF'
git.example.com {
reverse_proxy 127.0.0.1:8080
}
EOF
systemctl reload caddyCaddy sets no request-body limit unless you ask for one, so large pushes over HTTPS go through. If you prefer nginx, raise client_max_body_size; the GitBucket wiki uses 500m.
- 06Sign in at
https://git.example.comasrootwith passwordrootand change it before anything else. Under System settings, confirm the base URL, decide whether self-registration and access without sign-in belong on this instance (for a private team, they do not), then enable SSH with bind host0.0.0.0, bind port29418, and the public host and port your users will type. GitBucket only shows SSH clone URLs once the base URL is set.
- 01
Backups that survive the server
The GitBucket wiki makes the right point about backups: the database and the Git repositories have to match, or a restore gives you pull requests pointing at commits that are not there. For a small team the simplest way to guarantee that is to stop GitBucket for the length of the backup, dump PostgreSQL, and snapshot both with restic into an S3-compatible bucket on our object storage, where 250 GB costs $1.99 a month with no request fees.
#!/bin/sh # /usr/local/bin/gitbucket-backup set -eu . /root/.restic-env # RESTIC_REPOSITORY=s3:https://<endpoint>/<bucket>, access keys, RESTIC_PASSWORD_FILE cd /opt/gitbucket trap 'docker compose start gitbucket' EXIT docker compose stop gitbucket docker compose exec -T db pg_dump -U gitbucket -Fc gitbucket > backup/gitbucket.dump restic backup data backup docker compose start gitbucket trap - EXIT restic forget --keep-daily 14 --keep-weekly 8 --pruneThe
traprestarts GitBucket even if restic fails, so a failed backup at night does not become an outage in the morning. Panama keeps UTC−5 all year with no daylight saving, so if the server clock runs on UTC,15 8 * * *in root's crontab means 03:15 in Panama City every day of the year. Runrestic initonce beforehand, and restore into a scratch directory at least once; a backup you have never restored is a hypothesis. Use the bucket through the S3 API only. Neverrclone mountit underGITBUCKET_HOMEor under PostgreSQL's data directory.
05/07
Cost.
| Item | Monthly (USD) |
|---|---|
| VPS Standard: 4 vCPU, 4 GB, 160 GB NVMe, 15 TB transfer, 1 Gbps | 12.99 |
| Daily backups option (+20 %; theoretical, 2.598 rounded) | 2.60 |
| Object storage, 250 GB bucket for restic | 1.99 |
| Total | 17.58 |
Billed yearly, VPS plans come out roughly 25 % cheaper, which puts Standard near $9.75 a month (the yearly price divided by twelve). Keep the daily backups option and the restic copy as two different things: whatever the mechanism, an image taken while PostgreSQL is running is at best crash-consistent, while the restic snapshot is a consistent copy you can restore on any machine. Outbound port 25 is open on every VPS, so GitBucket can send its notifications directly; the IP's reputation and your domain's SPF and DKIM records are then yours to manage.
Payment is crypto only (AVAX, BCH, BNB, BTC, DOGE, ETH, LTC, SOL, TRX, USDC, USDT and XMR), with prices and balances in US dollars, and business customers paying in crypto are welcome. Top-ups run from $25 to $5,000 and carry a bonus of 5 % from $50, 10 % from $100, 15 % from $250 and 20 % from $500; the unused paid part of a top-up is refundable within 14 days. Every plan's current price is on the pricing page.
06/07
Where your code sits,
legally.
Your repositories live on hardware in PTY1, Panama City, operated by Cyber Host International, S.A. Article 29 of Panama's Constitution allows private communications to be intercepted only on the order of a judicial authority, and private documents to be examined only on the order of a competent authority and for specific purposes. As of 31 October 2026 the US Department of Justice lists CLOUD Act executive agreements with the United Kingdom and Australia only, none with Panama. That is not the same as being out of reach: Panama and the United States have had a mutual legal assistance treaty in criminal matters in force since 6 September 1995, so a US request travels through Panamanian authorities and Panamanian procedure. Law 51 of 2009 obliges telecommunications companies and other communication networks to keep certain user data for six months; whether it reaches a hosting provider is a question for Panamanian counsel, not for a product page.
A Git forge also holds more personal data than people expect. Every commit records an author name and email address, and GitBucket stores accounts, SSH keys and issue threads besides. Personal data in Panama falls under Law 81 of 2019, implemented by Executive Decree 285 of 2021. If you are an EU controller, Panama has no EU adequacy decision, so moving EU personal data here needs appropriate safeguards such as the 2021 standard contractual clauses. The wider picture is on our offshore hosting page.
07/07
Limits, acceptable use
and your obligations.
A DMCA notice has no legal effect on servers in Panama. We forward copyright complaints to the customer and act on a decision of a competent Panamanian authority, or where the content is manifestly unlawful. A GitBucket instance that serves malware or phishing kits to the public falls under the second case whether the files sit in a repository, a release asset or a wiki attachment. The full rules are in our acceptable use policy.
You are the operator of your instance, and that carries obligations we cannot take off your hands. If you open self-registration or allow access without sign-in, you answer for what other people push, and complaints we forward will be about your server. The default root/root account is printed in the project's README, so anyone scanning for GitBucket knows it too; change it on first login and keep both GitBucket and the base image updated. You comply with Panamanian law and with the law that applies to you and to your users where they are.
Catalogue·Options
Every configuration, every option, every price.
Six cloud VPS plans on AMD EPYC with local NVMe. Transfer is included on every plan, from 10 TB to 100 TB a month.
| Plan | vCPU | Memory | NVMe | Transfer | Port | Price | Deploy |
|---|---|---|---|---|---|---|---|
| StarterStaging, dev | 2 | 2 GB | 80 GB | 10 TB / month | 1 Gbps | $6.99/mo | Deploy Starter |
| StandardRecommendedSmall apps | 4 | 4 GB | 160 GB | 15 TB / month | 1 Gbps | $12.99/mo | Deploy Standard |
| ProProduction | 6 | 8 GB | 320 GB | 20 TB / month | 1 Gbps | $22.99/mo | Deploy Pro |
| PowerHeavy workloads | 12 | 16 GB | 640 GB | 40 TB / month | 2 Gbps | $42.99/mo | Deploy Power |
| UltraDatabases | 16 | 32 GB | 1000 GB | 60 TB / month | 2 Gbps | $65.99/mo | Deploy Ultra |
| TitanDense hosts | 32 | 64 GB | 2000 GB | 100 TB / month | 5 Gbps | $119.99/mo | Deploy Titan |
Every plan runs on AMD EPYC with local NVMe. Yearly billing costs about 25% less.
Every plan
- AMD EPYCon every host
- Local NVMenot network storage
- DDoS protectionalways on
- 1 IPv4 addressmore at $2 each
- VNC consoleand full root access
FAQ
Questions
people ask first.
Short answers about running this in PTY1. If yours is not here, open a ticket from your panel.
Can I run GitBucket on Debian 13 without Docker?
Yes, with one caveat. GitBucket's README asks for Java 17, and Debian 13 packages only OpenJDK 21 and 25. You can install Temurin 17 from the Adoptium repository and run the WAR under a systemd unit (the GitBucket wiki has an example), or use Debian's OpenJDK 21 and accept that you are testing a runtime the project does not name. The container sidesteps the question because it ships Temurin 17.
Can Git over SSH use port 22?
The host's own sshd holds port 22. The simple route is to keep 29418 and have users add Port 29418 for the host in ~/.ssh/config, or use the ssh:// clone URL GitBucket displays, which carries the port. If you want port 22 for Git, move the host's sshd to another port first, confirm you can log in on it from a second session, then publish 22:29418 and set the SSH public port to 22 in System settings.
H2 or PostgreSQL?
The project's own notes say MySQL and PostgreSQL are not faster than the embedded H2, so speed is not the argument. PostgreSQL gives you pg_dump, a backup format independent of GitBucket's version, whereas H2 has already forced a manual dump and reload on everyone upgrading from 4.42 or earlier to 4.43 or later, because H2 1.x and 2.x files are incompatible. One person on H2 is fine; a team should start on PostgreSQL rather than migrate later through the admin console's export and import.
How do I upgrade safely?
Read the release notes, run the backup script, change the image tag in compose.yaml, then run docker compose pull && docker compose up -d. Schema migrations run at start-up, and an older GitBucket should not be expected to open a newer schema, so rolling back means restoring the backup rather than reverting the tag. 4.48.0 also changed authentication-related APIs, and the project warns that some plugins may stop working; test a plugin-heavy instance on a copy first.
Can repositories or LFS objects live on object storage?
Not in GitBucket's core, which writes repositories and LFS objects to local disk under its data directory. Use the bucket for restic snapshots; an S3 mount under GITBUCKET_HOME does not give Git or the database the file semantics they rely on.
Sources
Every fact on this page, with its source
Accessed 5 Nov 2026 unless noted.
Panamanian law and authorities
- Constitution of Panama, article 29G.O. 25176, Legispan
- Law 81 of 26 March 2019 on personal data protection, implemented by Executive Decree 285 of 28 May 2021Gaceta Oficial 28743-A
- Law 51 of 2009, art. 6 (six-month retention by telecommunications companies and communication networks)Gaceta Oficial 26374
EU and other countries
- CLOUD Act executive agreements (United Kingdom and Australia only)US Department of Justice · verified 31 Oct 2026
- GDPR article 46 and the 2021 standard contractual clausesRegulation (EU) 2016/679
Industry, providers and software
- GitBucket README: version 4.48.0 of 20 September 2026, Java 17 requirement, data directory, default account, H2 and 4.47/4.48 migration notesgithub.com/gitbucket/gitbucket
- Official Docker image: README and Dockerfile (eclipse-temurin:17, ports 8080 and 29418, volume /gitbucket, plain java -jar command)gitbucket-docker
- Published image tags, 4.48.0 = latestghcr.io/gitbucket/gitbucket
- GitBucket wiki, Basic configurations: GITBUCKET_DB_URL, GITBUCKET_DB_USER, GITBUCKET_DB_PASSWORD, GITBUCKET_BASE_URLwiki
- GitBucket wiki, External database configuration: MySQL 5.7+, PostgreSQL 14+, export and importwiki
- GitBucket wiki, Enabling SSH access: bind host/port, public host/port, base URL requirementwiki
- GitBucket wiki, Performance: small-team scope, external databases not faster than H2wiki
- GitBucket wiki, Backup: database and repositories must be consistentwiki
- GitBucket wiki, Reverse proxy with Nginx: client_max_body_size 500mwiki
- Docker documentation, Install Docker Engine on Debian: Debian 13 supported, published ports bypass ufw/firewallddocs.docker.com
- Java packages on Debian 13 (OpenJDK 21 and 25 only; Temurin 17 via Adoptium)computingforgeeks.com, third-party test
Other references
- US–Panama mutual legal assistance treaty, signed 1991, in force 6 September 1995US Department of State
Your server in Panama,
ready when you are.
Cloud VPS start at $6.99 a month and are ready 60 to 120 seconds after you order.