Public | Automated Build

Last pushed: 8 months ago
Short Description
GitBucket behind Nginx and with HTTP/2 Support
Full Description

GitBucket in Docker (Alpine with Supervisor)

Felling like supporting me in my projects use donate button. Thank You!

NOTE: This image was refactored and stripped down to alpine version with Java 8 and Gitbucket
If users need ssl support please put it behind HAProxy or Nginx server.

Docker Image with GitBucket server based on Alpine Linux for lightweight

Environmental Variable

  • CONTEXTPATH runtime variable --prefix=
  • HOSTNAME runtime variable --host=
  • DATA_DIR runtime variable --gitbucket.home=


docker run \
  -d \
  --name gitbucket \
  -p 80:80 \
  -p 29418:29418 \

Mount data to host os and edit some variables.

docker run \
  -d \
  --name gitbucket \
  -p 80:80 \
  -p 29418:29418 \
  -e \
  -e DATA_DIR=/my/custom/container/dir \
  -v /my/host/dir:/my/custom/container/dir \


docker build -t million12/gitbucket .

Access GitBucket

Default Login and Password is root:root

Docker troubleshooting

Use docker command to see if all required containers are up and running:

$ docker ps

Check logs of gitbucket server container:

$ docker logs gitbucket

Sometimes you might just want to review how things are deployed inside a running
container, you can do this by executing a bash shell through docker's

docker exec -ti gitbucket /bin/bash

History of an image and size of layers:

docker history --no-trunc=true million12/gitbucket | tr -s ' ' | tail -n+2 | awk -F " ago " '{print $2}'


Author: Przemyslaw Ozgo (

Docker Pull Command
Source Repository