Friday, September 8, 2017

Minio Running as Service

In this case we  are just running minio server as a service in a docker swarm so that the services are up. For this we need a shared Storage so that when the service is running in different hosts the data’s are synced.

echo "AKIAIOSFODNN7EXAMPLE" | docker secret create access_key -
echo "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY" | docker secret create secret_key -

docker service create --name="minio-service" --publish 9000:9000   --constraint 'node.role == manager' --mount type=bind,src=/mnt/minio/,dst=/data --secret="access_key" --secret="secret_key" minio/minio server /data

No comments:

Post a Comment