fix: update Docker Compose version and correct command syntax
This commit is contained in:
@@ -1,9 +1,15 @@
|
||||
version: '3'
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
app:
|
||||
build: .
|
||||
container_name: nodejs-app
|
||||
ports:
|
||||
- "3000"
|
||||
environment:
|
||||
- NODE_ENV=development
|
||||
volumes:
|
||||
- .:/app
|
||||
command: npm run start
|
||||
- /app/node_modules
|
||||
working_dir: /app
|
||||
command: npm start
|
||||
Reference in New Issue
Block a user