Containerized Deployment with Docker
This section provides a step-by-step guide to installing Docker, running the RDMC project using Docker Compose, and accessing the application.
Install Docker
Install Docker on your machine by following the instructions provided in the official Docker documentation:
Docker is required to build and run the project in an isolated containerized environment.
Create a .env File
Set up your environment variables by creating a .env file in the project root. An example configuration file is available here: .env.example.
The .env file provides runtime configuration to the Docker containers, such as database credentials and application settings.
Run the Project with Docker
Once Docker is installed, you can run the project using Docker. To do so, open a command prompt and run the following command:
docker-compose up -d --build
Note
Make sure Docker is running before executing this command.
This command builds and starts the Docker containers defined in the docker-compose.yml file in detached mode.
Access the Application
Once the Docker containers are running, open the application in your browser:
Accessing the application verifies that the Docker containers started successfully and the service is reachable.