Skip to content

Commit 9abc115

Browse files
committed
Add running docker instructions and include .dockerignore files
1 parent 456bc41 commit 9abc115

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

apps/user-service/.dockerignore

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,11 @@
1-
node_modules
1+
node_modules
2+
.git
3+
.gitignore
4+
README.md
5+
MongoDBSetup.md
6+
LICENSE
7+
.env
8+
.env*
9+
Dockerfile
10+
GuideAssets
11+
.dockerignore

apps/user-service/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,3 +289,16 @@ cd apps/user-service
289289
# Build dockerfile after replacing the build arguments (Ensure that your docker daemon is running beforehand)
290290
docker build -t user-service --build-arg JWT_TOKEN='replace_with_jwt_token' --build-arg DB_CLOUD_URI='replace_with_db_uri_here' -f Dockerfile .
291291
```
292+
293+
### Running Docker
294+
295+
```bash
296+
# Run the docker image, the -d tag is to run it detached
297+
docker run -p 3001:3001 -d user-service
298+
299+
# To check the container information
300+
docker ps
301+
302+
# To stop the container, use the container ID from the previous command
303+
docker stop <container_id>
304+
```

0 commit comments

Comments
 (0)