This project consists of three applications running on different ports. Follow the steps below to build and start the project.
Ensure that you have Docker and Docker Compose installed on your machine. If not, you can download them from the official Docker website.
Clone the repository :
# SSH (recommended)
git clone [email protected]:rohan-dua/SiftHire.git
# HTTPS
git clone https://github.com/rohan-dua/SiftHire.git
Create a file docker-compose.override.yml in the project folder to setup environment variables needed :
# docker-compose.override.yml
version: '3'
services:
astro:
environment:
PUBLIC_SANITY_PROJECT_ID: 'xxx'
PUBLIC_SANITY_DATASET: 'xxx'
PUBLIC_SANITY_API_VERSION: 'xxx'
PUBLIC_SANITY_API_TOKEN_WRITE: 'xxx'
BASE_URL: 'xxx'
X_API_KEY: 'xxx'
sanity:
environment:
SANITY_STUDIO_PROJECT_ID: 'xxx'
SANITY_STUDIO_NETLIFY_API_ID: 'xxx'
SANITY_STUDIO_NETLIFY_BUILD_HOOK: 'xxx'
SANITY_STUDIO_TITLE: 'xxx'
SANITY_STUDIO_URL: 'xxx'
SANITY_STUDIO_WEBSITE_NAME: 'xxx'
SANITY_STUDIO_API_DATASET: 'xxx'
SANITY_STUDIO_API_TOKEN: 'xxx'
SANITY_STUDIO_X_API_KEY: 'xxx'
Please ask a team member for the credentials masked by
xxx
docker-compose up
This will build the Docker image and start the containers.
After starting the development servers, you can access the applications at the following URLs:
Three applications will be up on these ports -
Please note that the applications must be running for the URLs to work. If you encounter any issues, please contact a team member for assistance.
Once the Docker image is built, you can access the container development servers for the three applications (Astro, Sanity, and API) using the following commands:
docker-compose exec astro sh
docker-compose exec sanity sh
Private and proprietary, all rights reserved.