fix: correct port mapping and update volume path in docker-compose.yml

This commit is contained in:
2026-02-22 00:46:01 +01:00
parent 9e95d8eaed
commit 6b96cd2012

View File

@@ -6,9 +6,9 @@ services:
container_name: nodejs-app container_name: nodejs-app
ports: ports:
- "3000" - "3000"
environment:
- NODE_ENV=development
volumes: volumes:
- .:/app - /home/docker/myapp:/app
- /app/node_modules - /app/node_modules
working_dir: /app working_dir: /app
command: npm start
restart: unless-stopped