Skip to content

Latest commit

 

History

History
59 lines (38 loc) · 1.38 KB

README.md

File metadata and controls

59 lines (38 loc) · 1.38 KB

Senti IoT platform compose

About Senti: Open Source IoT Service Platform.

Prerequisites

# Install Docker and Docker Compose: Example for Linux Debian / Ubuntu:
apt update && apt install docker-compose

# Fetch current code:
git clone https://github.com/senti-iot/senti-compose.git
cd ./senti-compose/senti-iot/

Configuration

Create ./senti-compose/senti-iot/.env with:

TODO=1

Create ./senti-compose/senti-iot/eventbroker/.env with:

TODO=1

Copy example and edit ./senti-iot/mosquitto/config/.passwd:

cp ./mosquitto/config/example.passwd ./mosquitto/config/.passwd

Automatic Docker Compose

docker-compose pull

# Note: use `-f docker-compose.dev.yml` only for development
docker-compose -f docker-compose.yml -f docker-compose.git.yml -f docker-compose.dev.yml up --build

Manual Docker

docker network create senti-network

docker build --pull --tag senti-iot/eventbroker .

docker run --rm --net senti-network -p 3024:3024 -v "$PWD/.env":/usr/src/app/.env senti-iot/eventbroker

docker build --pull --tag senti-iot/messagebroker .

docker run --rm --net senti-network -p 3024:3024 -v "$PWD/.env":/usr/src/app/.env senti-iot/messagebroker

docker run -d --net senti-network --env MARIADB_USER=senti --env MARIADB_PASSWORD=senti_secret --env MARIADB_ROOT_PASSWORD=root_secret --name mariadb mariadb