docs: update README.md to include ports

Update readme.md include both method to expose the container.
This commit is contained in:
Otávio Silva 2023-11-09 12:41:06 -03:00 committed by GitHub
parent f4d5953516
commit 390cb75062
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -78,7 +78,9 @@ services:
- NODE_ENV=production
volumes:
- ./:/home/node/app
ports:
expose:
- "8081"
ports: #use if it is necessary to expose the container to the host machine
- "8081": "8081"
command: "npm start"
```