Skip to content

Commit d9df67d

Browse files
committed
docs: update Docker Compose example to use Node.js 22
Signed-off-by: Mert Şişmanoğlu <[email protected]>
1 parent 0044209 commit d9df67d

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

README.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,21 +67,16 @@ $ docker run -it --rm --name my-running-app my-nodejs-app
6767
If you prefer Docker Compose:
6868

6969
```yml
70-
version: "2"
7170
services:
7271
node:
73-
image: "node:8"
74-
user: "node"
75-
working_dir: /home/node/app
72+
image: "node:22"
7673
environment:
7774
- NODE_ENV=production
7875
volumes:
7976
- ./:/home/node/app
80-
expose:
81-
- "8081"
8277
ports: # use if it is necessary to expose the container to the host machine
83-
- "8001:8001"
84-
command: "npm start"
78+
- "8888:8888"
79+
command: ["npm", "start"]
8580
```
8681
8782
You can then run using Docker Compose:

0 commit comments

Comments
 (0)