File tree Expand file tree Collapse file tree 1 file changed +18
-7
lines changed Expand file tree Collapse file tree 1 file changed +18
-7
lines changed Original file line number Diff line number Diff line change @@ -52,17 +52,28 @@ Follow these steps to set up and run the Contact File Backend Service locally:
52
52
` ` `
53
53
- The service will be running on ` http://localhost:5000` by default.
54
54
55
- 2. Docker Installation
55
+ 2. Docker Installation (Prerequisites : Docker)
56
56
57
- 1. ** Pull image**
58
- - Pull the docker image from Docker Hub
57
+ 1. ** Clone the Repository**
58
+
59
+ - Clone the repository.
60
+ ` ` ` bash
61
+ git clone https://github.com/CodeChefVIT/contactify-backend
62
+ ` ` `
63
+ - Navigate to the cloned directory and run
59
64
` ` ` bash
60
- docker pull shivamgutgutia/ contactify:latest
65
+ cd contactify-backend/backend
61
66
` ` `
62
- 2. ** Run Container**
63
- - Create and run a container using the image pulled
67
+ 2. ** Configuration**
68
+
69
+ - Create a ` .env` file in the current directory.
70
+ - Define environment variables such as:
71
+ - ` PORT=5000`
72
+
73
+ 2. ** Build and Run Container**
74
+ - Create and run the container
64
75
` ` ` bash
65
- docker run -d -p 5000:5000 shivamgutgutia/contactify:latest
76
+ docker-compose up --build
66
77
` ` `
67
78
- The service will be running on ` http://localhost:5000` .
68
79
You can’t perform that action at this time.
0 commit comments