HR Management System
Running with Docker
Prerequisites
- Docker
- Docker Compose
Steps to Run with Docker
-
Clone the repository
git clone <repository-url> cd <repository-directory>
-
Start the application with Docker Compose
docker-compose up -d
-
Access the application
- The web application will be available at 127.0.0.1:5000
- MySQL database will be available at 127.0.0.1:3306
Docker Environment Variables
The following environment variables can be modified in the docker-compose.yml file:
-
DB_HOST
: Database hostname (default: db) -
DB_USER
: Database username (default: hrapp) -
DB_PASSWORD
: Database password (default: changeme_in_production) -
DB_NAME
: Database name (default: hrms) -
DB_PORT
: Database port (default: 3306)
Running Locally (without Docker)
STEP 1
pip install -r requirements.txt
STEP 2
create your own config.py
file in instance directory based on config_example.py