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