Redmine image and doc : https://github.com/sameersbn/docker-redmine/
Create the docker-compose file:
mkdir -p /srv/docker/images/redmine/
cat docker-compose.yml > /srv/docker/images/redmine/docker-compose.yml
# Edit the docker-compose.yml file
Install usefull plugins :
sudo mkdir -p /srv/docker/redmine/redmine/plugins
cd /srv/docker/redmine/redmine/plugins
git clone https://github.com/peclik/clipboard_image_paste.git
git clone https://github.com/jgraichen/redmine_dashboard.git
cd redmine_dashboard
git fetch --tags
git checkout $(git tag | tail -n1)
# Fixing some gem versions problems
sed "s/gem 'test-unit'/# gem 'test-unit'/" -i Gemfile
bundle install --without development test rmagick
service apache2 reload
Uncomment the volumes_from
section of the docker-compose.yml
file.
You can then add them in the "repo" project section : /home/git/data/repositories/my_namespace/my_repo.git
For more info, see https://github.com/sameersbn/docker-gitlab#external-issue-trackers
If you have the two services on the same host, you should want to use a http proxy to redirect requests by hostname, have a look at https://github.com/jwilder/nginx-proxy
Clone necessary source code git repo.
You can then add them in the "repo" project section : /home/redmine/data/repo/my_repo.git
sudo mkdir -p /srv/docker/redmine/redmine/repo
cd /srv/docker/redmine/redmine/repo
git clone --mirror git@my_repo.git
Add the repo fetch cron job :
cat crontab.sh > /srv/docker/images/redmine/crontab.sh && chmod +x /srv/docker/images/redmine/crontab.sh
crontab -e
# */5 * * * * /srv/docker/images/redmine/crontab.sh
Then, run containers :
cd /srv/docker/images/redmine/
docker-compose up -d
Wait a few minutes, then go to http://localhost:10083/
- Redmine docker image folder : /srv/docker/images/redmine
- Redmine data folder : /srv/docker/redmine/redmine
- MySQL data folder : /srv/docker/redmine/mysql