Docker 快速搭建redmine 项目管理 BUG追踪
在Docker快速创建 redmine 当然是用docker-compose.首先 下载 composewget https://raw.githubusercontent.com/sameersbn/docker-redmine/master/docker-compose.yml文件内容参考version: '2'services:postgresql:...
·
在Docker快速创建 redmine 当然是用 docker-compose.
首先 下载 compose
wget https://raw.githubusercontent.com/sameersbn/docker-redmine/master/docker-compose.yml
文件内容参考:https://github.com/sameersbn/docker-redmine
version: '2'
services:
postgresql:
image: sameersbn/postgresql:9.6-4
environment:
- DB_USER=redmine
- DB_PASS=password
- DB_NAME=redmine_production
volumes:
- /mnt/docker/redmine/postgresql:/var/lib/postgresql
redmine:
build: ./
image: sameersbn/redmine:4.1.1-6
depends_on:
- postgresql
environment:
- TZ=Asia/Kolkata
- DB_ADAPTER=postgresql
- DB_HOST=postgresql
- DB_PORT=5432
- DB_USER=redmine
- DB_PASS=password
- DB_NAME=redmine_production
- REDMINE_PORT=10083
- REDMINE_HTTPS=false
- REDMINE_RELATIVE_URL_ROOT=
- REDMINE_SECRET_TOKEN=
- REDMINE_SUDO_MODE_ENABLED=false
- REDMINE_SUDO_MODE_TIMEOUT=15
- REDMINE_CONCURRENT_UPLOADS=2
- REDMINE_BACKUP_SCHEDULE=
- REDMINE_BACKUP_EXPIRY=
- REDMINE_BACKUP_TIME=
- SMTP_ENABLED=false
- SMTP_METHOD=smtp
- SMTP_DOMAIN=www.example.com
- SMTP_HOST=smtp.gmail.com
- SMTP_PORT=587
- SMTP_USER=mailer@example.com
- SMTP_PASS=password
- SMTP_STARTTLS=true
- SMTP_AUTHENTICATION=:login
- IMAP_ENABLED=false
- IMAP_HOST=imap.gmail.com
- IMAP_PORT=993
- IMAP_USER=mailer@example.com
- IMAP_PASS=password
- IMAP_SSL=true
- IMAP_INTERVAL=30
ports:
- "10083:80"
volumes:
- /mnt/docker/redmine/redmine:/home/redmine/data
- /mnt/docker/redmine/redmine-logs:/var/log/redmine
输入命令
docker-compose up
或者
docker run --name=postgresql-redmine -d \
--env='DB_NAME=redmine_production' \
--env='DB_USER=redmine' --env='DB_PASS=password' \
--volume=/mnt/docker/redmine/postgresql:/var/lib/postgresql \
sameersbn/postgresql:9.6-4
docker run --name=redmine -d \
--link=postgresql-redmine:postgresql --publish=10083:80 \
--env='REDMINE_PORT=10083' \
--volume=/mnt/docker/redmine/redmine:/home/redmine/data \
--volume=/mnt/docker/redmine/redmine-logs:/var/log/redmine/ \
sameersbn/redmine:4.1.1-6
注意 如路径是/mnt
在docker要配置可以访问如图
返回如下数据
docker-compose up
Pulling postgresql (sameersbn/postgresql:9.6-4)...
9.6-4: Pulling from sameersbn/postgresql
6b98dfc16071: Pull complete
4001a1209541: Pull complete
6319fc68c576: Pull complete
b24603670dc3: Pull complete
97f170c87c6f: Pull complete
02befcbfa4bc: Pull complete
703f657e352c: Pull complete
d5bfe11f5126: Pull complete
cfbe776bd60f: Pull complete
cc092b9fffcf: Pull complete
f5d746359f3e: Pull complete
Digest: sha256:518664a770e57fb023fb5cc5c3b3e492802f898d32f226481a1bf2c3d6ad4a20
Status: Downloaded newer image for sameersbn/postgresql:9.6-4
Pulling redmine (sameersbn/redmine:3.4.6)...
3.4.6: Pulling from sameersbn/redmine
cb56c90f0b30: Pull complete
0acc551e5716: Pull complete
8956dcd35143: Pull complete
908242721214: Pull complete
b44ff14dd3bb: Pull complete
707fcc5f355b: Pull complete
731fc417ced9: Pull complete
dd703ad06df3: Pull complete
30c23778cf21: Pull complete
ad7acb28644a: Pull complete
4db700937b9f: Pull complete
b683858c9e22: Pull complete
Digest: sha256:48c263882e2704fdf6d0e7cf89fb505526480ae622fe3981f4a656714807dd9e
Creating redmine_postgresql_1 ... done
Creating redmine_postgresql_1 ...
Creating redmine_redmine_1 ... done
Attaching to redmine_postgresql_1, redmine_redmine_1
postgresql_1 | Initializing datadir...
redmine_1 | Initializing logdir...
redmine_1 | Initializing datadir...
postgresql_1 | Initializing certdir...
postgresql_1 | Initializing logdir...
postgresql_1 | Initializing rundir...
postgresql_1 | Setting resolv.conf ACLs...
postgresql_1 | Creating database user: redmine
postgresql_1 | Creating database: redmine_production...
postgresql_1 | ‣ Granting access to redmine user...
postgresql_1 | Starting PostgreSQL 9.6...
postgresql_1 | LOG: database system was shut down at 2018-08-18 10:44:42 UTC
postgresql_1 | LOG: MultiXact member wraparound protections are now enabled
postgresql_1 | LOG: database system is ready to accept connections
postgresql_1 | LOG: autovacuum launcher started
redmine_1 | Symlinking dotfiles...
redmine_1 | Installing configuration templates...
redmine_1 | Configuring redmine...
redmine_1 | Configuring redmine::database
redmine_1 | Configuring redmine::unicorn...
redmine_1 | Configuring redmine::secret_token...
redmine_1 | Generating a session token...
redmine_1 | Note:
redmine_1 | All old sessions will become invalid.
redmine_1 | Please specify the REDMINE_SECRET_TOKEN parameter for persistence.
redmine_1 | **SHOULD** be defined if you have a load-balancing Redmine cluster.
redmine_1 | Configuring redmine::max_concurrent_ajax_uploads...
redmine_1 | Configuring redmine::sudo_mode...
redmine_1 | Configuring redmine::autologin_cookie...
redmine_1 | Configuring redmine::backups...
redmine_1 | Configuring nginx...
redmine_1 | Configuring nginx::redmine...
redmine_1 | Installing plugins...
redmine_1 | Installing themes...
redmine_1 | 2018-08-18 16:15:15,540 CRIT Supervisor running as root (no user in config file)
redmine_1 | 2018-08-18 16:15:15,540 WARN Included extra file "/etc/supervisor/conf.d/nginx.conf" during parsing
redmine_1 | 2018-08-18 16:15:15,540 WARN Included extra file "/etc/supervisor/conf.d/cron.conf" during parsing
redmine_1 | 2018-08-18 16:15:15,540 WARN Included extra file "/etc/supervisor/conf.d/unicorn.conf" during parsing
redmine_1 | 2018-08-18 16:15:15,558 INFO RPC interface 'supervisor' initialized
redmine_1 | 2018-08-18 16:15:15,559 CRIT Server 'unix_http_server' running without any HTTP authentication checking
redmine_1 | 2018-08-18 16:15:15,559 INFO supervisord started with pid 1
redmine_1 | 2018-08-18 16:15:16,562 INFO spawned: 'unicorn' with pid 222
redmine_1 | 2018-08-18 16:15:16,564 INFO spawned: 'cron' with pid 223
redmine_1 | 2018-08-18 16:15:16,567 INFO spawned: 'nginx' with pid 224
redmine_1 | 2018-08-18 16:15:17,603 INFO success: unicorn entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
redmine_1 | 2018-08-18 16:15:17,604 INFO success: cron entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
redmine_1 | 2018-08-18 16:15:17,604 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
就创建成功了 如果 失败了 删除 所有镜像 然后再试一次 就可以了
参考地址:https://github.com/sameersbn/docker-redmine
用户名 admin密码 admin
就可以愉快的玩耍了
相比国内免费的项目管理软件;redmine免费开源 支持甘特图
注意:部分虚拟机 会遇到端口访问失败 允许通过的端口设置 还是访问失败 可以尝试关闭防火墙试一下 是否正常 验证是否安装成功
更多推荐
已为社区贡献1条内容
所有评论(0)