用Docker安装Redmine

1、软件环境

Ubuntu 20.04

2、安装Docker

2.1、安装GPG证书

curl -fsSL http://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add -

2.2、写入软件源信息

sudo add-apt-repository "deb [arch=amd64] http://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable"

2.3、更新软件库信息并安装

sudo apt-get -y update

sudo apt-get -y install docker-ce

3、安装Redmine

3.1、下载镜像文件

docker pull docker.io/sameersbn/redmine

docker pull docker.io/sameersbn/postgresql

3.2、启动容器

启动数据库

docker run--name=postgresql-redmine -d --env='DB_NAME=redmine_production' --env='DB_USER=redmine' --env='DB_PASS=password' --restart=always --volume=/srv/docker/redmine/postgresql:/var/lib/postgresql sameersbn/postgresql

启动Redmine

docker run--name=redmine -d --link=postgresql-redmine:postgresql --publish=10083:80 --env='REDMINE_PORT=10083' --restart=always --volume=/srv/docker/redmine/redmine:/home/redmine/data sameersbn/redmine

4、参考资料

安装Docker

https://www.cnblogs.com/xiaoyingzhanchi/p/14283044.html

安装Redmine

https://blog.csdn.net/LucasLi2016/article/details/105183771/

https://www.cnblogs.com/wangsongbai/p/13334820.html


版权声明:本文为tjcbq原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。