Skip to content

Latest commit

 

History

History
38 lines (31 loc) · 1.13 KB

README.md

File metadata and controls

38 lines (31 loc) · 1.13 KB

delegation-program-leaderboard

Technologies Used


Postgresql, Html 5, Bootstrap 4, Php 8.0, Docker


Installing Docker file

  1. Move terminal to this repo.
  2. Create a config file (i.e. config.env) with below parameters:
DB_SNARK_HOST=
DB_SNARK_PORT=
DB_SNARK_USER=
DB_SNARK_PWD=
DB_SNARK_DB=
optional test setting
IGNORE_APPLICATION_STATUS=1

When IGNORE_APPLICATION_STATUS is set to 1 the leaderboard will not take into consideration application_status=true condition when displaying the results. It is meant to be used in test environments only.

Configure these variables and save the file.

  1. Go to the terminal.
  2. Type below commands:
  3. docker build -t mina-web .

  4. docker run --env-file ./config.env --name mina-web --restart unless-stopped -p 80:80 -p 443:443 -i -t -d mina-web

This will install all dependancies and start the container. After finishing the process we will opening the browser with 127.0.0.1


Note

After any changes in project you have rebuild the docker file by using docker build -t mina-web . this command and again run the container .