Image for post
Image for post

Deploy Mainflux on Digital Ocean in 3 Simple Steps

With Digital Ocean’s One-Click Apps, it is really simple to deploy Mainflux — it can be done in less than 5 minutes. We’ll show how in this article.

Drasko DRASKOVIC
Sep 18, 2018 · 2 min read

Step 1 — Digital Ocean Docker One-Click App

You’ll receive root password via e-mail, so use IP address of your newly created machine to login as a root:

ssh root@167.99.209.135

We’ll deploy Mainflux under the simple user (not root), so let’s create one user:

adduser mainflux

In order for this user to be capable to deploy Docker containers, it must be added to a docker Linux group:

usermod -aG docker mainflux

OK, we’re done as a root, let’s switch to this simple user:

su - mainflux

Now the fun begins ;).

Step 2 — Get Mainflux

In the moment of writing of this blog post, latest release is 0.5.1, so we’ll execute:

wget -O- https://github.com/mainflux/mainflux/archive/0.5.1.tar.gz | tar xz && cd mainflux-0.5.1

All that’s left now is to launch the system.

Step 3 — Deploy

docker-compose -f docker/docker-compose.yml up

And that’s all — you have your Mainflux IoT platform up and running!

To learn more about Mainflux and how we’re building the world’s most sophisticated open-source Industrial IoT cloud, visit our website and follow us on Twitter!

Mainflux IoT Platform

Mainflux is highly secure, scalable, open-source IoT…

Drasko DRASKOVIC

Written by

Mainflux IoT Platform

Mainflux is highly secure, scalable, open-source IoT platform written in Go and deployed in Docker. It serves as software infrastructure and set of microservices for development of the Internet of Things Solutions and deployment of Intelligent products.

Drasko DRASKOVIC

Written by

Mainflux IoT Platform

Mainflux is highly secure, scalable, open-source IoT platform written in Go and deployed in Docker. It serves as software infrastructure and set of microservices for development of the Internet of Things Solutions and deployment of Intelligent products.

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store