Skip to content

Deploy MinIO Service⚓︎

Tip

1 Preparation⚓︎

1.1 Enviroment Information⚓︎

  • Information of MinIO:
192.168.100.41

2 Install and deploy Docker⚓︎

2.1 Install Docker⚓︎

yum install -y yum-utils device-mapper-persistent-data lvm2
yum-config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
sed -i 's+download.docker.com+mirrors.aliyun.com/docker-ce+' /etc/yum.repos.d/docker-ce.repo
yum makecache fast
yum -y install docker-ce

2.2 Configure Docker⚓︎

mkdir /etc/docker/
vi /etc/docker/daemon.json
{
  "live-restore": true,
  "registry-mirrors": ["https://hub-mirror.c.163.com", "https://bmtrgdvx.mirror.aliyuncs.com", "http://f1361db2.m.daocloud.io"],
  "log-driver": "json-file",
  "log-opts": {"max-file": "3", "max-size": "10m"}
}

2.3 Start Docker⚓︎

systemctl enable docker
systemctl start docker

3 Install and deploy MinIO⚓︎

3.1 Download MinIO Image⚓︎

docker pull minio/minio:latest
latest: Pulling from minio/minio
a591faa84ab0: Pull complete
76b9354adec6: Pull complete
f9d8746550a4: Pull complete
890b1dd95baa: Pull complete
3a8518c890dc: Pull complete
8053f0501aed: Pull complete
506c41cb8532: Pull complete
Digest: sha256:e7a725edb521dd2af07879dad88ee1dfebd359e57ad8d98104359ccfbdb92024
Status: Downloaded newer image for minio/minio:latest
docker.io/minio/minio:latest

3.2 Create a persistent data directory of MinIO⚓︎

mkdir -p /opt/jumpserver/minio/data /opt/jumpserver/minio/config

3.3 Start MinIO Service⚓︎

## Please modify the account password yourself and remember it. If it is lost, you can delete the container and recreate it with a new password; your data will not be lost
# 9000                                  # access port of api 
# 9001                                  # access port of console 
# MINIO_ROOT_USER=minio                 # account of minio 
# MINIO_ROOT_PASSWORD=KXOeyNgDeTdpeu9q  # password of minio 
docker run --name jms_minio -d -p 9000:9000 -p 9001:9001 -e MINIO_ROOT_USER=minio -e MINIO_ROOT_PASSWORD=KXOeyNgDeTdpeu9q -v /opt/jumpserver/minio/data:/data -v /opt/jumpserver/minio/config:/root/.minio --restart=always minio/minio:latest server /data --console-address ":9001"

3.5 Create Buckets in MinIO⚓︎

  • Visit http://192.168.100.41:9000,and login with account and password you just set
  • Navigate to the Buckets section in the left-side menu, choose Create Bucket, enter 'jumpserver' as the Bucket Name, and then click Save to create the bucket

3.6 Configure MinIO in JumpServer⚓︎

  • Visit JumpServer Web page and login with account of administrator.
  • Navigate to the [Terminal Management] in the left-side menu. At the top of the page, select [Storage Configuration]. Under [Recording Storage], choose [Create] and select [Ceph].
  • Please fill out the details according to the instructions below, save the changes, and then update all components on the [Terminal Management] page. Select [jms-mino] for recording storage and submit.
Option Refer Value Description
Name (Name) jms-minio Identifier, must be unique
Type (Type) Ceph Fixed, can not be changed
Bucket name (Bucket) jumpserver Bucket Name
Access key minio MINIO_ROOT_USER
Secret key KXOeyNgDeTdpeu9q MINIO_ROOT_PASSWORD
Endpoint (Endpoint) http://192.168.100.41:9000 Visit address of minio service
Default Storage New components will automatically use this storage