Skip to content

SharukaNP/orangehrm-os-dev-environment

 
 

Repository files navigation

Orangehrm open source Development environment

Docker build

Introduction

This project will facilitate inbuilt development environment for developers and testers

Technology

  • Docker
  • Docker compose
  • Nginx
  • PHP 5.6, PHP 7.0, PHP 7.1, PHP 7.2, PHP 7.3, PHP 7.4, PHP 8.0, PHP 8.1

Installation:

  1. Clone this project
  2. Copy the file .env.dist to .env and change (LOCAL_SRC) path to your project path
  3. update /etc/hosts file with following line Example:
127.0.0.1	php56 php70 php71 php72 php73 php74 php80 php81

How to up/down containers

Up all containers

docker-compose up -d

Up only development containers

docker-compose up -d php-7.2 mysql57

Down all container

docker-compose stop

Env information

PHP Version Host
PHP 8.1 http://php81
PHP 8.0 http://php80
PHP 7.4 http://php74
PHP 7.3 http://php73
PHP 7.2 http://php72
PHP 7.1 http://php71
PHP 7.0 http://php70
PHP 5.6 http://php56

Config & Database

DB Host User Password
MySQL 5.5 mysql55 root root
MySQL 5.6 mysql56 root root
MySQL 5.7 mysql57 root root
MySQL 8.0 mysql80 root root
MariaDB 5.5 mariadb55 root root
MariaDB 10.0 mariadb100 root root
MariaDB 10.1 mariadb101 root root
MariaDB 10.2 mariadb102 root root
MariaDB 10.3 mariadb103 root root
MariaDB 10.4 mariadb104 root root
MariaDB 10.5 mariadb105 root root
MariaDB 10.6 mariadb106 root root
MariaDB 10.7 mariadb107 root root
MariaDB 10.8 mariadb108 root root
MariaDB 10.9 mariadb109 root root

To use the command line clients provided by the containers you can use the following commands:

# MySQL
docker-compose exec mysql` mysql -u root -p"root"

# MariaDB
docker-compose exec mariadb -u root -p"root"

How to browse Orangehrm

Note: Here PORT is either NGINX_PORT or NGINX_SSL_PORT which are defined in .env. When using NGINX_SSL_PORT as the PORT then URL should start with https instead of http.

Run commands in a running container

Execute in PHP 7.4:

docker-compose exec php-7.4 bash
# OR
docker exec -it os_dev_php74 bash

Execute in PHP 7.3:

docker exec -it os_dev_php73 bash

Execute in PHP 7.2:

docker exec -it os_dev_php72 bash

Execute in PHP 7.1:

docker exec -it os_dev_php71 bash

Execute in PHP 7.0:

docker exec -it os_dev_php70 bash

Build Images

docker-compose -f docker-compose.yml -f docker-compose-build.yml build nginx

About

Orangehrm open source development environment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 99.6%
  • Shell 0.4%