Docker快速搭建OpenProject项目管理协作平台

转载来源:https://hub.docker.com/r/openproject/community

 

Docker快速搭建OpenProject项目管理协作平台

 

Tags信息

  • openproject/community:7 - The latest stable version (7.x) of OpenProject's Community Edition.
  • openproject/community:7.4 - The latest version (7.4.x) of OpenProject's Community Edition
  • openproject/community:7.4.0 - Version 7.4.0 of OpenProject's Community Edition

There are also respective tags for older versions beginning from 7.3.2.

Warning if you are using PostgreSQL:

OpenProject 7.4.0 requires UPSERT which is only supported from Postgres 9.5 on. That means if you want to update from OpenProject 7.3.2 to 7.4.0 you have to upgrade your Postgres database.

See also the Postgres Migration Guide.

 

快速开始

This runs the latest stable branch of OpenProject. The database and attachments will be saved on the host. Meaning they will still be there after a restart of the docker container.

docker run \
  -p 8080:80 \
  -v /persistent/db-data/dir/on/host:/var/lib/postgresql/9.4/main \
  -v /persistent/openproject/data/on/host:/var/db/openproject \
  -e SECRET_KEY_BASE=youshouldoverwritethiswithsomethingelse \
  openproject/community:7

Don't forget to override the SECRET_KEY_BASE with a sensible value. I.e. a long, once randomly generated string. After running this you can access OpenProject under http://localhost:8080.

PS: http://localhost:8080  默认账户 admin/admin,如果您只是测试,或个人使用,请使用快速开始的配置。

 

生产环境

In production you will want to use a separate database running in a different container. Also it's a good idea to have the attachments on a NFS share if you want to run several OpenProject containers so that they share the attachments. Lastly a separate, shared memcached should be used so that the cache does not get lost when a container is restarted.

docker run \
  -v /mnt/nfs-share/openproject:/var/db/openproject \
  -e DATABASE_URL="postgres://user:password@host:5432/dbname?pool=10&encoding=unicode&timeout=5000&reconnect=true" \
  -e SECRET_KEY_BASE=youshouldoverwritethiswithsomethingelse \
  -e CACHE_MEMCACHE_SERVER=memcache.host
  -e CACHE_NAMESPACE=openproject
  openproject/community:7

Overriding DATABASE_URL allows you to use an external database.

 

SSL/TLS

The docker image does not support SSL. It only serves normal HTTP requests on port 80. If you do want OpenProject to be available under HTTPS you can put it behind a load balancer which takes care of SSL termination.

Alternatively you can use the packaged installation which does support SSL.

 

演示界面

PS: 非常不错,免费,强大,快速绘制甘特图,在线协作!

 

 

  • 1
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值