/mdp

Molecular Degree of Perturbation

Primary LanguagePHPMIT LicenseMIT

Welcome to MDP

Molecular Degree of Perturbation ·· ··

  • Every time you download these files, you must extract the .htaccess file (It's inside the zipped file) to the root of the folder where the index.php file is located. That's because the Github server rejects that kind of file.

  • It is responsible for hiding the file extension. For example: instead of being mdp.com/index.php it will be mdp.com/index.

  • In the files/assets/js/global.js file change mysite to the url the tool is hosted on

var url_site = "http://mysite/";

TODO

  • Separed repository front/back files
  • Automatic pull

Containers

  • Frontend - NGINX;
  • Backend PHP - PHP-FPM;

2 Containers.

Infrastructure

Infrastructure Pipa

*

This cloud represents the proxy environment and maintenance of SSL certificates that handles requests and forwards them to the project. This environment is present in the following repository: Reverse Provy Apps .

Requisites

Installation

Clone the repository recursively with:

user@host:~# git clone --recurse-submodules https://gitlab.com/integrativebioinformatics/mdp.git

This mode the externals repositorys the frontend and backend are cloned.

Pre-Execution

Define permissions for user www-data in directory back/front which will be mounted as volume in container. Because the user may not exist on the host host, we use the gid that is standard on any system. Execute:

user@host:~/mdp# chown 33:33 -R mdp_files

Execution

In the root repository, execute the next command:

user@host:~/mdp# docker-compose up -d

The option -d execute containers in background.

OBS.: For scalability reasons, this project was designed to receive requests from a proxy, so port 80 is not exposed. If you need to run the environment locally (exposed port 80), the command is as follows:

user@host:~/mdp# docker-compose -f docker-compose-local.yml up -d

Enjoy!