A Complete HMS based on LAMP stack using docker-compose
sudo docker-compose up
- Add db_lang.php
- if you are using phpMyAdmin then change the "sql_mode" setting as mentionedthe in below screenshot. phpmyadmn > variables > sql_mode = ''
We need kompose to translate docker-compose.yml to K8S yaml resource files.
curl -L https://github.com/kubernetes/kompose/releases/download/v1.21.0/kompose-linux-amd64 -o kompose
kompose up
sudo groupadd docker
sudo usermod -aG docker $USER
Reboot
newgrp docker
Docker login
Minikube is a tool that runs a single-node Kubernetes cluster in a virtual machine on your personal computer.
curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 \
&& chmod +x minikube
sudo mkdir -p /usr/local/bin/
sudo install minikube /usr/local/bin/
minikube start
Run the kompose up command to deploy to Kubernetes directly, or skip to the next step instead to generate a file to use with kubectl.
kompose up
Or without building docker images
kompose up --build none
kompose convert -f docker-compose.prod.yml -o kubemanifests.yaml
kubectl apply -f kubemanifests.yaml
--> Navigate to localhost or 127.0.0.1
Create a MySQL database Import promed.sql Edit public_html/application/config/database.php file