Note: You need a docker installation
- Clone the Infra repository
https://github.com/Xployt-ai/xployt-infra/
-
Create an
.envfile with the secrets defined in.env.sample -
run
deploy.sh
This script clones the neccesary service repositories and utilizes Docker Compose to build and run containerized versions of all services. An Nginx reverse proxy is deployed to intercept external traffic and route requests to the appropriate backend service.
How It Works
-
Containerization & Orchestration: The command first containerizes each application service using Docker. Then, Docker Compose orchestrates the multi-container environment, managing the lifecycle and networking of all services as defined in the configuration file.
-
Request Routing: An Nginx instance is configured as a reverse proxy. It acts as the single entry point for all external connections, receiving incoming requests and forwarding them to the correct backend service container based on the request's parameters.
-
Local Access: When this setup is running on your local machine, the application stack is accessible at http://localhost.