自学内容网 自学内容网

Rocky Linux 安装redmine记录

安装docker

sudo yum install -y yum-utils
sudo yum-config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
sudo sed -i 's+download.docker.com+mirrors.aliyun.com/docker-ce+' /etc/yum.repos.d/docker-ce.repo
yum makecache 
sudo yum install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

更换docker源

sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<EOF
{
    "registry-mirrors": [
        "https://docker.1ms.run",
        "https://docker.xuanyuan.me",
    ]
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker

创建配置文件:stack.yml

version: '3.1'

services:

  redmine:
    image: redmine
    restart: always
    ports:
      - 3000:3000
    environment:
      REDMINE_DB_POSTGRES: db
      REDMINE_DB_DATABASE: redmine
      REDMINE_DB_PORT: 5432
      REDMINE_DB_USERNAME: postgres
      REDMINE_DB_PASSWORD: <替换成下面db部分设置密码>
    volumes:
      - ./redmine:/usr/src/redmine/

  db:
    image: postgres
    restart: always
    ports:
      - 55432:5432
    environment:
      POSTGRES_USER: postgres
      POSTGRES_PASSWORD: <替换成需要的密码>

创建空文件夹redmine

mkdir redmine

一键运行

docker compose -f stack.yml up -d

原文地址:https://blog.csdn.net/dinofish/article/details/145236221

免责声明:本站文章内容转载自网络资源,如侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!