What is OrangeHRM?
OrangeHRM
is 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 10
the database that comes with Synology.
phpMyAdmin
Create an empty database named in orangehrm
.
For illustration purposes, assume the database password is
123456
Therefore, according to the above settings, the final database-related parameters are as follows:
- Database host:
192.168.0.197
, consistent with Synology hostIP
; - Database port:
3307
, if you useMariaDB 5
it3306
, 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,
latest
the corresponding version is5.4
It should be noted that if the version of the Synology kernel is too low, you will encounter the following error. This
AH00141
has 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 docker
the folder, create a new folder orangehrm
with a subfolder inside itdata
folder | mount path | illustrate |
---|---|---|
docker/orangehrm/data |
/orangehrm |
store data |
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 |
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;
command line installation
If you are familiar with the command line, it may be docker cli
faster 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-compose
the installation, save the following content as docker-compose.yml
a 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
Because it is the first installation, so the default Fresh Installation
is fine, just clickNext
Tick to agree to the agreement, clickNext
The default is New Database
, since we have created an empty database, so change toExisting Empty Database
Database Host Name
: Fill in the database hostIP
;Database Host Port
: The port of the database host is3307
;Database Name
: The name of the database libraryorangehrm
;OrangeHRM Database Username
: The database username isorangehrm
OrangeHRM Database User Password
: The password corresponding to the database user
After filling, clickNext
If there is no problem with the database setting, the environment will be detected. Generally speaking, Docker
there will be no problem in the middle, clickNext
Set the country, language, time zone as required, clickNext
Create an administrator account, clickNext
If you confirm that the information is correct, you can click Install
to start the installation.
When you see that everything is complete and the button is displayed Next
, it means that the installation has been successful
Click Launch OrangeHRM
to jump to the login interface
Log in with the administrator account created earlier
After successful login, you can start using
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/