This DockerHub repository hosts the backend service for the Employee Management System project, developed using Spring Boot and powered by PostgreSQL. The application is containerized for seamless deployment across development and production environments.
The service runs on port 1337 by default and requires several environment variables for proper configuration.
The following variables must be configured when running the container:
DATASOURCE_URL: URL for the PostgreSQL database.
Example: jdbc:postgresql://hostname:5432/database_name
DATASOURCE_USERNAME: database username.
DATASOURCE_PASSWORD: database password.
JWT_SECRET: key used for signing JWT access and refresh tokens.
JWT_EXPIRY_MS: token expiration time in milliseconds.
Example: 10800000 (3 hours)
JWT_REFRESH_EXPIRY_MS: token expiration time in milliseconds.
Example: 43200000 (12 hours)
PORT: port (default: 1337)
Example Docker run command:
docker run -d \
--name employee-management-system \
-e DATASOURCE_URL='jdbc:postgresql://your-db-host:5432/your-db-name' \
-e DATASOURCE_USERNAME='your-db-username' \
-e DATASOURCE_PASSWORD='your-db-password' \
-e JWT_SECRET='your-super-secret-key' \
-e JWT_EXPIRY_MS=10800000 \
-e JWT_REFRESH_EXPIRY_MS=43200000 \
-p 1337:1337 \
dipanshushukla/employee-management-system
Backend Repository: Employee Management System Backend
Frontend Repository: Employee Management System Frontend
Content type
Image
Digest
sha256:b60b7b532…
Size
226.7 MB
Last updated
7 months ago
docker pull dipanshushukla/employee-management-system:latest-dev