From c33239ee76ba666b2c93640077e6838231e17128 Mon Sep 17 00:00:00 2001 From: Narongpol Kijrangsan Date: Sat, 1 Mar 2025 00:40:53 -0500 Subject: [PATCH] update compose.yaml --- compose.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/compose.yaml b/compose.yaml index 4d7af0d..7a13dc2 100644 --- a/compose.yaml +++ b/compose.yaml @@ -1,6 +1,9 @@ services: nodejs-app: - build: . + image: node:latest + working_dir: /usr/src/app volumes: - .:/usr/src/app - command: sh -c "npm install && npx nodemon" \ No newline at end of file + command: sh -c "npm install && npx nodemon" + ports: + - "3000:3000" \ No newline at end of file