MinIO: Deploy MinIO as Container

= Deploy Minio as Container =

In Linux, create a directory

mkdir -p /minio/data

Deploy MinIO container using Podman

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:// :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 =


 * Artigos sobre MinIO