Git Product home page Git Product logo

iot-platform-docker-compose's Introduction

IOT Platform Docker Compose

Introduction

This repository can be used to host a standard IOT platform (Linux, Apache, MariaDB, PHP, MongoDB) using docker compose. The docker images used for building LAMP stack are:-

  1. Web Server - php:7.4-apache
  2. Web API Server - python:3.8.2
  3. Public API Server - python:3.8.2
  4. Device API Server - python:3.8.2
  5. MySQL Server - mariadb:10.5.1-bionic
  6. PHPMyAdmin - phpmyadmin/phpmyadmin
  7. MongoDB Server - mongo:5.0.0
  8. Mongo Express - mongo-express

Instructions

  1. The default configuration is saved as sample_env. Copy contents from sample_env to .env.

    cp sample_env .env
  2. Make necessary changes to .env file.

  3. Build docker-compose image using the following command.

    docker-compose build --no-cache
  4. Run docker-compose using the following command.

    docker-compose up -d
  5. To shut down docker-compose container, using the following command.

    docker-compose down

Architecture

IOT-Platform

Folder Structure

iot-application-docker-compose
 ┣ bin // Docker binaries
 ┃ ┣ deviceapiserver
 ┃ ┃ ┣ code // Python API code
 ┃ ┃ ┃ ┣ app.py
 ┃ ┃ ┃ ┗ requirements.txt
 ┃ ┃ ┗ Dockerfile
 ┃ ┣ mongodb
 ┃ ┃ ┗ Dockerfile
 ┃ ┣ mongoexpress
 ┃ ┃ ┗ Dockerfile
 ┃ ┣ mysql
 ┃ ┃ ┗ Dockerfile
 ┃ ┣ phpmyadmin
 ┃ ┃ ┗ Dockerfile
 ┃ ┣ publicapiserver
 ┃ ┃ ┣ code // Python API code
 ┃ ┃ ┃ ┣ app.py
 ┃ ┃ ┃ ┗ requirements.txt
 ┃ ┃ ┗ Dockerfile
 ┃ ┣ webserver
 ┃ ┃ ┣ code // HTML/PHP code
 ┃ ┃ ┃ ┗ index.php
 ┃ ┃ ┗ Dockerfile
 ┃ ┗ webserverapiserver
 ┃ ┃ ┣ code // Python API code
 ┃ ┃ ┃ ┣ app.py
 ┃ ┃ ┃ ┗ requirements.txt
 ┃ ┃ ┗ Dockerfile
 ┣ config // Platform configs
 ┃ ┣ apache2
 ┃ ┃ ┗ apache2.conf
 ┃ ┣ mongodb
 ┃ ┃ ┗ mongod.conf
 ┃ ┣ php
 ┃ ┃ ┗ php.ini
 ┃ ┗ vhosts
 ┃ ┃ ┗ default.conf
 ┣ data // Generated data
 ┃ ┗ .gitkeep
 ┣ docs
 ┃ ┣ architecture.drawio
 ┃ ┗ architecture.png
 ┣ logs // Generated logs
 ┃ ┗ .gitkeep
 ┣ .env
 ┣ .gitignore
 ┣ LICENSE
 ┣ README.md
 ┣ docker-compose.yaml
 ┗ sample_env // Sample env file

Contributors

  1. Sashwat K [email protected]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.