2.0 KiB
2.0 KiB
How to create your flavour of the MIH Server
Prerequisite:-
- Ubuntu Server OS installed (24.04 tested)
- Docker is Installed.
- Git is Installed.
- Sudo permission granted.
Get Started:-
- Clone Git Repo.
- Navigate to Mzansi-Innovation-Hub directory.
cd Mzansi-Innovation-Hub - Start MIH Server
- Non-Prod:
sudo docker compose up -d --build - Prod:
sudo docker compose --profile prod up -d --build - Prod with Letsincrypt certificate Generation:
sudo docker compose --profile prod --profile withCert up -d --build - Check the status of the new MIH server using Portainer.
https://localhost:9443/(Change Local Host to IP if necessary). - If all containers are running without errors, proceed to step 5 (NOTE: certbot container will stop after running successfully).
- If MIH-Minio did not start correctly, run
sudo chown 1001 File_Storage/in the project directory, stop MIH Server (see details below), then start from step 3 again.sudo chown 1001 File_Storage - Set Up MIH-Minio config
- Access MIH-Minio using
https://localhost:9001/login(Change Localhost to IP if necessary). - Add/ Generate access key to MIH-Minio.
- Create a bucket called mih.
- Non-Prod: make the mih bucket public.
- Prod: keep the mih bucket private.
- CONTINUE HERE
How to Stop MIH Server:-
- Non-Prod:
sudo docker compose down - Prod:
sudo docker compose --profile prod down - Prod with Letsincrypt certificate Generation:
sudo docker compose --profile prod --profile withCert down