效果如下:

部署教程:

下载镜像:

docker pull  openproject/community:8

Install OpenProject with Docker

Docker is a way to distribute self-contained applications easily. We provide a Docker image for the Community Edition that you can very easily install and upgrade on your servers. However, contrary to the manual or package-based installation, your machine needs to have the Docker Engine installed first, which usually requires a recent operating system. Please see the Docker Engine installation page if you don’t have Docker installed.

Also, please note that the Docker image is quite new and might not support all the options that the package-based or manual installation provides.

Quick Start

The fastest way to get an OpenProject instance up and running is to run the following command:

docker run -it -p 8080:80 -e SECRET_KEY_BASE=secret openproject/community:8

This will take a bit of time the first time you launch it, but after a few minutes you should see a success message indicating the default administration password (login: admin, password: admin).

You can then launch a browser and access your new OpenProject installation athttp://localhost:8080. Easy!

To stop the container, simply hit CTRL-C.

Note that the above command will not daemonize the container and will display the logs to your terminal, which helps with debugging if anything goes wrong. For normal usage you probably want to start it in the background, which can be achieved with the -d flag:

docker run -d -p 8080:80 -e SECRET_KEY_BASE=secret openproject/community:8

Recommended usage

The one-liner above is great to get started quickly, but if you want to run OpenProject in production you will likely want to ensure that your data is not lost if you restart the container.

To achieve this, we recommend that you create a directory on your host system where the Docker Engine is installed (for instance: /var/lib/openproject) where all this data will be stored.

You can use the following commands to create the local directories where the data will be stored across container restarts, and start the container with those directories mounted:

sudo mkdir -p /var/lib/openproject/{pgdata,static}docker run -d -p 9999:80 --name openproject -e SECRET_KEY_BASE=secret \-v /var/lib/openproject/pgdata:/var/openproject/pgdata \-v /var/lib/openproject/static:/var/openproject/assets \openproject/community:8

Since we named the container, you can now stop it by running:

docker stop openproject

And start it again:

docker start openproject

If you want to destroy the container, run the following commands

docker stop openproject && docker rm openproject

转载于:https://www.cnblogs.com/jiangzhaowei/p/11203280.html

Docker部署OpenProject相关推荐

  1. Docker 部署 SpringBoot 项目整合 Redis 镜像做访问计数Demo

    Docker 部署SpringBoot项目整合 Redis 镜像做访问计数Demo 最终效果如下 大概就几个步骤 1.安装 Docker CE 2.运行 Redis 镜像 3.Java 环境准备 4. ...

  2. Docker 部署SpringBoot项目不香吗?

    点击上方"方志朋",选择"设为星标" 回复"666"获取新整理的面试文章 作者:流星007 链接:toutiao.com/i68433912 ...

  3. docker部署springboot_Docker+SpringBoot快速构建和部署应用

    前言 Docker技术发展为当前流行的微服务提供了更加便利的环境,使用SpringBoot+Docker部署和发布应用,其实也是一件比较简单的事情.当前,前提是得有Docker的基础. 构建一个Spr ...

  4. docker初体验:docker部署nginx负载均衡集群

    Docker 是一个用于开发,交付和运行应用程序的开放平台.Docker 使您能够将应用程序与基础架构分开,从而可以快速交付软件.今天来为大家演示一下docker部署nginx负载均衡集群 环境 ce ...

  5. docker初体验:docker部署nginx服务

    Docker 是一个用于开发,交付和运行应用程序的开放平台.Docker 使您能够将应用程序与基础架构分开,从而可以快速交付软件.今天来为大家演示一下docker部署nginx 环境 centos7 ...

  6. Docker系列 四.Docker部署SpringBoot

    四.Docker部署SpringBoot 环境&工具: 阿里云轻量级服务器.CentOS 7系统.FinalShell(其他连接客户端也可以).IDEA 1. 创建springboot项目 这 ...

  7. Docker部署文档

    Docker部署文档 目录 Docker部署文档 1 一.什么是Docker 3 1.1Docker简介 3 1.2对比传统虚拟机总结 4 1.3Docker通常用于如下场景: 5 1.4基本概念 5 ...

  8. Docker部署Zookeeper集群

    Docker部署Zookeeper集群 官方网站: http://zookeeper.apache.org/ http://zookeeper.apache.org/doc/r3.4.8/zookee ...

  9. 部署go的web应用_使用Docker部署Go Web应用

    为什么需要Docker? 使用docker的主要目标是容器化.也就是为你的应用程序提供一致的环境,而不依赖于它运行的主机. 想象一下你是否也会遇到下面这个场景,你在本地开发了你的应用程序,它很可能有很 ...

最新文章

  1. 深度丨AI挑战人类情感!机器人写诗出书背后透露了什么?
  2. 按原有结构恢复被删除的FAT32文件夹
  3. 苹果终端date命令_mac 终端 常用命令
  4. mysql日常错误信息解决方法:InnoDB: and force InnoDB to continue crash recovery here.
  5. ElGamal加密、签名算法笔记
  6. POJ 2135 Farm Tour amp;amp; HDU 2686 Matrix amp;amp; HDU 3376 Matrix Again 费用流求来回最短路...
  7. java保存私钥_如何在Java中使用密钥库来存储私钥?
  8. Docker将在存储上崭露头角?
  9. 如何发送Head请求
  10. 霸榜各大CV任务榜单,Swin Transformer横空出世!
  11. ontouchevent android,android onTouchEvent处理机制总结(必看)
  12. Json.NET 不再有超过120个依赖项
  13. C语言深入学习系列 - 字节对齐内存管理
  14. 计算机桌面小工具软件,win10桌面小工具(Desktop Gadgets Installer)
  15. MAC下微软Word修改样式为宋体却显示SimSun-Extb的解决办法
  16. 中职计算机ps公开课教案,Photoshop教案(公开课).doc
  17. 网管IT服务管理五个心得
  18. mysql 100w 查询耗时4秒_MySql百万数据0秒筛选查询
  19. 记一次定位解决SpringBoot中内嵌Tomcat的Bug问题
  20. 「助记词密盒」用户协议与隐私政策

热门文章

  1. CRM_REPORT_RF_CHECK_AUTHORITY call CRM_REPORT_RF_AUTH_OBJ_ORD_LP
  2. 三千多天之前我没有编辑完的技术文档
  3. WebSocket服务器和客户端的一对多连接
  4. 《非暴力沟通》听书心得
  5. highcharts 怎么去掉鼠标悬停效果_腿上肥胖纹怎么去掉 大腿肥胖纹怎么消除
  6. java里冒泡排序编程案例_冒泡排序法-java案例详解
  7. python学习-序列化对象(pickle)
  8. 集合三人斗地主的思路
  9. 线程打印_线程知识回顾
  10. ue4材质节点怎么用_济南装修:阳台储物柜用什么材质好?怎么保养阳台储物柜?...