Sign inSign up

bobuntu/gitbucket

By bobuntu

•Updated over 9 years ago

gitbucket docker image (support self-signed cert)

Image
0

390

bobuntu/gitbucket repository overview

⁠docker-compose

version: '2'
services:
  gitbucket:
    image: bobuntu/gitbucket
    ports:
      - 8080:8080
      - 29418:29418
    volumes:
      - /peth/to/self-signed.pem:/opt/self-signed.pem
      - /path/to/data:/gitbucket
    restart: unless-stopped

⁠Usage

docker command:
# docker run -d --name gitbucket -p 8080:8080 -p 29418:29418 -v /path/to/data:/gitbucket bobuntu/gitbucket
if import self-signed cert to keystore, add -v /path/to/self-signed.pem:/opt/self-signed.pem
(e.g: useful for webhook)

gitbucket running on: http://example.com:8080/gitbucket⁠

⁠Nginx (SSL Reverse Proxy)

server {
    listen 443 ssl http2;
    ...
    location /gitbucket {
        proxy_pass              http://example.com:8080/gitbucket;
        proxy_set_header        Host $host;
        proxy_set_header        X-Real-IP $remote_addr;
        proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_connect_timeout   150;
        proxy_send_timeout      100;
        proxy_read_timeout      100;
        proxy_buffers           4 32k;
        client_max_body_size    500m; # Big number is we can post big commits.
        client_body_buffer_size 128k;
    }
}

⁠GitBucket's license

see https://github.com/takezoe/gitbucket⁠

Tag summary

Content type

Image

Digest

Size

101.4 MB

Last updated

over 9 years ago

docker pull bobuntu/gitbucket