gitbucket docker image (support self-signed cert)
390
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
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
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;
}
}
Content type
Image
Digest
Size
101.4 MB
Last updated
over 9 years ago
docker pull bobuntu/gitbucket