redmine-docker
https://github.com/bitnami/bitnami-docker-redmine
安裝docker-compose
官網上docker-ompose的安裝有幾種方式,我選著用pip安裝(python>3.6), ubuntu16.04已經滿足
pip install docker-compose
安裝redmine
version: '2'
services:
postgresql:
image: 'bitnami/postgresql:11'
environment:
- ALLOW_EMPTY_PASSWORD=yes
- POSTGRESQL_USERNAME=bn_redmine
- POSTGRESQL_DATABASE=bitnami_redmine
volumes:
- '/mnt/extdisk1/docker_images/bitnami-docker-redmine/postgresql_data:/bitnami/postgresql'
- '/home/hhh/app/llrpWeb:/gitrepo/imx8_web'
redmine:
image: 'bitnami/redmine:4'
ports:
- '3000:3000'
environment:
- REDMINE_DB_POSTGRES=postgresql
- REDMINE_DB_USERNAME=bn_redmine
- REDMINE_DB_NAME=bitnami_redmine
- REDMINE_PASSWORD=123456
volumes:
- '/mnt/extdisk1/docker_images/bitnami-docker-redmine/redmine_data:/bitnami'
depends_on:
- postgresql
volumes:
postgresql_data:
driver: local
redmine_data:
driver: local
預設的使用者名稱和密碼:
REDMINE_USERNAME: Redmine application username. Default: user
REDMINE_PASSWORD: Redmine application password. Default: bitnami1
TODO
- 增加git的對映
可以在bitnami-docker-redmine的基礎上,對subUriInit.sh
指令碼進行覆蓋
然後再將docker容器中/docker/container/dir/xxx.git目錄倉庫對映到宿主機的/host/path/to/xxx.git上- 在subUrlInit.sh指令碼中mkdir /docker/container/dir/xxx.git
- 在redmine登入並且建立/docker/container/dir/xxx.git/.git的倉庫路徑