Skip to content

m-abdi/havas_demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Havas

This warehouse management platform is designed for hospitals and their management departments.

live demo: https://havas.mehdiabdi.com

Start app with docker-compose

Linux

replace <ACCESS_TOKEN> with access token of docker hub

docker login -u abdimehdi -p <ACCESS_TOKEN> && \
chmod +x ./scripts/start.sh && \
chmod +x ./scripts/rs-init.sh && \
sudo systemctl restart docker.service && \
./scripts/start.sh

Windows

replace <ACCESS_TOKEN> with access token of docker hub

docker login -p <ACCESS_TOKEN>
docker compose --file docker-compose-local.yml up
docker compose exec mongo1 mongosh
rs.initiate( { _id : "dbrs", members: [ { _id: 0, host: "mongo1:27017" }, { _id: 1, host: "mongo2:27017" }, { _id: 2, host: "mongo3:27017" } ] })

output: { ok: 1 }

docker container restart havas-initialization

run this frequently to update your local image

docker pull abdimehdi/havas:latest

Backup database

docker exec mongo1 sh -c 'exec mongodump -d havas --archive'> ./db-backup.archive

Restore database

mongoresotre --archive=./db-backup.archive

Saving logs in a file

docker logs nextjs > ./logs/logs.log

Save docker images in an archive file

docker build -f Dockerfile_init -t havas-initialization-db .

docker build -f Dockerfile_RFID -t havas-rfid-python .

docker save mongo:5.0.9 \
            abdimehdi/havas:latest \
            emqx/emqx:latest \
            havas-initialization-db:latest \
            havas-rfid-python:latest \
            python:3.10.6 \
            node:16-alpine \
            -o havas.tar

Load docker images locally

docker load -i havas.tar

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •