Skip to content

Commit 390cb75

Browse files
docs: update README.md to include ports
Update readme.md include both method to expose the container.
1 parent f4d5953 commit 390cb75

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ services:
7878
- NODE_ENV=production
7979
volumes:
8080
- ./:/home/node/app
81-
ports:
81+
expose:
82+
- "8081"
83+
ports: #use if it is necessary to expose the container to the host machine
8284
- "8081": "8081"
8385
command: "npm start"
8486
```

0 commit comments

Comments
 (0)