MinIO

From Wiki
Revision as of 12:41, 2 October 2023 by Ebasso (talk | contribs) (Created page with " = Deploy Minio as Container = podman run -d \ -p 9000:9000 \ -p 9001:9001 \ -v /minio/data:/data \ -e "MINIO_ROOT_USER=root" \ -e "MINIO_ROOT_PASSWORD=passw0rd" \ --name minio_server_9001 \ quay.io/minio/minio server /data --console-address ":9001" Now open a browser and access the url http://<your server>:9001/ = Configure Minio container as Linux Service = Create file '''/etc/systemd/system/minio-container.service''', and add the following c...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Deploy Minio as Container

podman run -d \
  -p 9000:9000 \
  -p 9001:9001 \
  -v /minio/data:/data \
  -e "MINIO_ROOT_USER=root" \
  -e "MINIO_ROOT_PASSWORD=passw0rd" \
  --name minio_server_9001 \
  quay.io/minio/minio server /data --console-address ":9001"

Now open a browser and access the url http://<your server>:9001/

Configure Minio container as Linux Service

Create file /etc/systemd/system/minio-container.service, and add the following content

[Unit]
Description=Minio container

[Service]
Restart=always
ExecStart=/usr/bin/podman start -a minio_server_9001
ExecStop=/usr/bin/podman stop -t 2 minio_server_9001

[Install]
WantedBy=local.target

save the file

Enable the service

systemctl enable minio-container.service

Start the service

systemctl start minio-container.service

Check the status of the service

systemctl status minio-container.service


Ver também