Open Source Human Resource Management System OrangeHRM

insert image description here

What is OrangeHRM?

OrangeHRMis a comprehensive Human Resource Management ( HRM) system that includes all the basic functions any business needs. The software is designed to support teams of any size, from start-ups to SMEs to large multinational organisations.

You can also go to the official demo site to experience

URL: https://opensource-demo.orangehrmlive.com/web/index.php/auth/login

account information:

  • Username : Admin
  • Password : admin123

Install

build database

Lao Su used MariaDB 10the database that comes with Synology.

insert image description here

phpMyAdminCreate an empty database named in orangehrm.

For illustration purposes, assume the database password is123456

insert image description here

Therefore, according to the above settings, the final database-related parameters are as follows:

  • Database host: 192.168.0.197, consistent with Synology host IP;
  • Database port: 3307, if you use MariaDB 5it 3306, but Lao Su didn’t test it;
  • Database user:orangehrm
  • Database password:123456
  • Database name: orangehrm, because the same name as the user is selected;

install mirror

Install it in Docker mode on Synology.

Search in the registry orangehrm, select the third orangehrm/orangehrm, version selection latest.

When Lao Su is tossing, latestthe corresponding version is5.4

insert image description here

It should be noted that if the version of the Synology kernel is too low, you will encounter the following error. This AH00141has been encountered many times, and Lao Su has no other solution except to change the machine;

Function not implemented: AH00141: Could not initialize random number generator

roll

Inside dockerthe folder, create a new folder orangehrmwith a subfolder inside itdata

folder mount path illustrate
docker/orangehrm/data /orangehrm store data

insert image description here

port

It is fine if the local port does not conflict. If you are not sure, you can check it with the command

# 查看端口占用
netstat -tunlp | grep 端口号
local port container port
8202 80

insert image description here

environment

variable value
PUID PUID, which defaults to1000
PGID PGID, which defaults to1000

The environment variable comes from: https://github.com/jmlcas/orangehrm/tree/main , but it may not work, because Lao Su did not find the description in the official document;

insert image description here

command line installation

If you are familiar with the command line, it may be docker clifaster to use

# 新建文件夹 orangehrm 和 子目录
mkdir -p /volume2/docker/orangehrm/data

# 进入 orangehrm 目录
cd /volume2/docker/orangehrm

# 运行容器
docker run -d \
   --restart unless-stopped \
   --name orangehrm \
   -p 8202:80 \
   -v $(pwd)/data:/orangehrm \
   -e PUID=1000 \
   -e PGID=1000 \
   orangehrm/orangehrm:latest

You can also use docker-composethe installation, save the following content as docker-compose.ymla file

version: '3'

services:
  orangehrm:
    image: orangehrm/orangehrm:latest
    container_name: orangehrm
    restart: unless-stopped
    ports:
      - 8202:80
    volumes:
      - ./data:/orangehrm
    environment:  
      - PUID=1000
      - PGID=1000

Then execute the following command

# 新建文件夹 orangehrm 和 子目录
mkdir -p /volume2/docker/orangehrm/data

# 进入 orangehrm 目录
cd /volume2/docker/orangehrm

# 将 docker-compose.yml 放入当前目录

# 一键启动
docker-compose up -d

run

Enter in the browser http://群晖IP:8202, the first time you will see the setup wizard

insert image description here

Because it is the first installation, so the default Fresh Installationis fine, just clickNext

insert image description here

Tick ​​to agree to the agreement, clickNext

insert image description here

The default is New Database, since we have created an empty database, so change toExisting Empty Database

  • Database Host Name: Fill in the database host IP;
  • Database Host Port: The port of the database host is 3307;
  • Database Name: The name of the database library orangehrm;
  • OrangeHRM Database Username: The database username isorangehrm
  • OrangeHRM Database User Password: The password corresponding to the database user

After filling, clickNext

insert image description here

If there is no problem with the database setting, the environment will be detected. Generally speaking, Dockerthere will be no problem in the middle, clickNext

insert image description here

Set the country, language, time zone as required, clickNext

insert image description here

Create an administrator account, clickNext

insert image description here

If you confirm that the information is correct, you can click Installto start the installation.

insert image description here

When you see that everything is complete and the button is displayed Next, it means that the installation has been successful

insert image description here

Click Launch OrangeHRMto jump to the login interface

insert image description here

Log in with the administrator account created earlier

insert image description here

After successful login, you can start using

insert image description here

reference documents

orangehrm/orangehrm: OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures all the essential functionalities required for any enterprise.
地址:https://github.com/orangehrm/orangehrm

OrangeHRM HR Software | Free & Open Source HR Software | HRMS | HRIS | OrangeHRM
地址:https://www.orangehrm.com/

Guess you like

Origin blog.csdn.net/wbsu2004/article/details/131758856