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