docker container and docker-compose file for gitbucket

data/ conf add mysql config 7 years ago
docker update to gitbucket 4.13 7 years ago
.env inital commit 7 years ago
.gitignore add plugin volume 7 years ago
LICENSE.md add license 7 years ago
README.md add backup description 7 years ago
backup.sh add backup script 7 years ago
docker-compose.yml update to gitbucket 4.13 7 years ago
generate_password.sh add script to change database passwords 7 years ago
gitbucket.conf add db environment 7 years ago
README.md

docker container for gitbucket

This docker container of gitbucket is under testing!!!

Usage

Dependencies

Installation

  1. Get code from repository:

    git clone https://gitbucket.pgollor.de/git/docker/gitbucket.git
    cd gitbucket
  2. Generate new passwords for your databse!!!

    ./generate_password.sh
  3. Get latest container:

    docker-compose pull
  4. Change the confoguration and start with:

    docker-compose up -d
  5. Open 127.0.0.1:8080 and be habby. :-)

Configuration

Please use the configuration file gitbucket.conf for your personal changes. There are three configs for gitbucket:

  • GITBUCKET_BIND: ip address to bind to
  • GITBUCKET_WEB_PORT: web port to bind to
  • GITBUCKET_SSH_PORT: ssh port to bind to

Plugins

To use plugins download the plugin and move it into data/plugins. After that restart the gitbucket container with docker-compose restart main-gitbucket.

Backup

For backuping the mysql database and the repositories you could use the backup.sh script and combine it with a daily cronjob. This script will create a compressed backup and keep the files 10 days in the backup directory. All files which are older then 10 days will be deleted.

TODO

  • wait for the next update and write an update howto
  • maybe a nginx container with ssl???

Inspirations

I got some inspirations for this project from:

License

License