With this repo you can set up Sentrysk Dasbord with Docker.
This docker-compose file includes:
- Sentrysk Backend
- Sentrysk Frontend
- Scheduled Jobs
- MongoDB
- Load Balancer(Nginx)
First thing first, you need to pull the Projects below to the upper folder.
Or you can change Dockerfile to give the path of the projects folder.
PS: Skip step 1, 2 and 3 if you already downloaded above repos.
- Step 1: Pull the Backend
git clone https://github.com/sentrysk/Sentrysk-Backend
- Step 2: Pull the Frontend
git clone https://github.com/sentrysk/Sentrysk-Frontend
- Stel 3: Pull the Scheduled Jobs
git clone https://github.com/sentrysk/Sentrysk-Scheduled-Jobs
- Step 4: Pull this Dockerized Project
git clone https://github.com/sentrysk/Sentrysk-Dashboard-Docker
- Step 4: Enter the Sentrysk-Dashboard-Docker folder
cd Sentrysk-Dashboard-Docker
- Step 5: Docker Up
docker-compose up
PS: Git clone may convert your project folder names like hyphened Sentrysk-Frontend, you may want to remove hyphens or change project folder names in Dockerfile
If you'd like to change backend replica count you should change deploy -> replicas value.
# Flask backend service
flask-app:
build:
context: ../Sentrysk Backend/
ports:
- "5000"
depends_on:
- mongo-db
deploy:
replicas: 3
PS: if you change the replica count you must change the nginx conf as well.
upstream flask-app {
server flask-app:5000;
server flask-app:5000;
server flask-app:5000;
}