Welcome to the infrastructure repository for the Supplier Rating Software. This project serves as the orchestration layer that ties together the SupplierRatingFrontend and SupplierRatingBackend applications. It utilizes Docker to manage the containerized deployment of the full stack.
- Centralized Orchestration: Manages the lifecycle of both frontend and backend services simultaneously using Docker Compose.
- Network Configuration: Establishes a dedicated bridge network (
rating-network) to ensure secure and direct communication between the frontend and backend containers. - Production Readiness: Includes a production-ready example configuration (
docker-compose-prod-example.yml) that utilizes pre-built images from the container registry. - Environment Management: Supports configuration via environment files to handle sensitive credentials and settings.
- Docker: Used for containerizing the application services to ensure consistency across different environments.
- Docker Compose: Used to define and run the multi-container Docker application.
- Nginx: Serves the frontend application (implied by the frontend service configuration).
- Java/Spring Boot: Powers the backend API (implied by the backend service context).
Follow these instructions to set up the infrastructure on your local machine.
The backend service requires a connection to an openBIS instance. You must ensure that the connection details are provided in your environment configuration files. Please refer to the Backend documentation for specific API user requirements and property types.
- Ensure you have Docker installed on your machine.
- Ensure you have Docker Compose installed.
The application relies on environment variables for configuration.
- The
docker-compose-prod-example.ymlfile references astack.envfile. - Please store this file as a:
docker-compose.ymlin your desired directory. - You should check these files to configure database credentials, openBIS URLs, and other runtime settings. An example
.envfile is in the backend project.
- Review the
.envorstack.envfiles. - Update the values to match your local or production environment settings.
- Open your terminal in the root directory of the
docker-compose.yml. - Run the following command to build and start the services:
docker-compose up -d
- Once the containers are running, the services will be accessible at the following ports:
- Frontend:
http://localhost:8082 - Backend API:
http://localhost:8085(if you need it outside the container)
- Frontend:
We welcome contributions to the infrastructure setup. Please ensure any changes to the Docker configuration are tested against production compose files.
This project is licensed under the MIT License. Copyright (c) 2025 SupplierRatingSoftware.
Permission is granted to use, copy, modify, and distribute this software under the terms of the MIT License.