Skip to content

Latest commit

 

History

History
66 lines (54 loc) · 1.93 KB

README.Docker.md

File metadata and controls

66 lines (54 loc) · 1.93 KB
logo

Blood-Bank-Management-System

|| Setup Guide ||

Prerequisites:

  • Ubuntu Instance
    • Instance Type: t2.medium
  • Install Docker, Docker-Compose & Git

Step 1 : Install Docker

sudo apt update
sudo apt install -y docker.io
sudo usermod -aG docker ubuntu
newgrp docker
docker --version

Step 2 : Install Docker-Compose

sudo curl -L "https://github.com/docker/compose/releases/download/v2.27.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version

Step 3 : Check the version of git.

git --version | cut -d ' ' -f3

Step 4 : Clone this repository.

git clone https://github.com/soravkumarsharma/Blood-Bank-Management-System.git

Step 5 : Change the directory.

cd Blood-Bank-Management-System

Step 6 : Create environment variable file.

mv .env.example .env

Step 7 : Start docker containers in detached mode.

docker-compose up -d

Step 8 : Check the containers are up and running.

docker ps

Step 9 : Access Application.

Go to your browser, and access this Blood Bank Application on port 80 and phpmyadmin dashboard on port 8080 via the ubuntu instance public IPv4 or IPv6.

Allow the inbound port 80, 8080 in the security group.

Credentials for Admin dashboard.

Access admin_test.php in your browser by typing admin_test.php in the address bar. This will automatically execute the PHP code inside the file and insert admin credentials into your MySQL database

  • username : sorav
  • password : root