Skip to content

Commit f4d5953

Browse files
Update README.md
Update docker-compose example with ports usage, because is better and more cofiable than expose usage
1 parent 18b91b9 commit f4d5953

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ services:
7878
- NODE_ENV=production
7979
volumes:
8080
- ./:/home/node/app
81-
expose:
82-
- "8081"
81+
ports:
82+
- "8081": "8081"
8383
command: "npm start"
8484
```
8585

0 commit comments

Comments
 (0)