Skip to content

Commit

Permalink
updated INSTALLATION.md
Browse files Browse the repository at this point in the history
  • Loading branch information
VanshikaSabharwal committed Nov 15, 2024
1 parent ec8ec5f commit 96d5e9a
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ jobs:
run: |
timeout="${HEALTH_CHECK_TIMEOUT:-120}"
echo "Starting health check with ${timeout}s timeout"
while ! nc -z localhost 4321 && [ $timeout -gt 0 ]; do
while ! nc -z localhost 4321 && [ "$timeout" -gt 0 ]; do
sleep 1
timeout=$((timeout-1))
Expand Down
25 changes: 25 additions & 0 deletions INSTALLATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ This document provides instructions on how to set up and start a running instanc
- [Install node.js](#install-nodejs)
- [Install TypeScript](#install-typescript)
- [Install Required Packages](#install-required-packages)
- [Installation using Docker](#installation-using-docker)
- [Build the Docker Image:](#build-the-docker-image)
- [Run the Docker container:](#run-the-docker-container)
- [Configuration](#configuration)
- [Creating .env file](#creating-env-file)
- [Setting up PORT in .env file](#setting-up-port-in-env-file)
Expand Down Expand Up @@ -145,6 +148,28 @@ npm install
The prerequisites are now installed. The next step will be to get the app up and running.
# Installation using Docker
If you prefer to use Docker, you can install the app using the following command:
## Build the Docker Image:
Run the following command to build the Docker image:
```
docker build -t talawa-admin .
```
## Run the Docker container:
After the build is complete, run the Docker container using this command:
```
docker run -p 4321:4321 talawa-admin
```
This will expose the container's port 4321 on your local machine, making the application accessible at http://localhost:4321.

# Configuration

It's important to configure Talawa-Admin. Here's how to do it.
Expand Down
23 changes: 0 additions & 23 deletions docker-compose.yaml

This file was deleted.

0 comments on commit 96d5e9a

Please sign in to comment.