Update Docker command
This commit is contained in:
parent
ff5d6fb82b
commit
b5ee0a1429
@ -11,7 +11,7 @@ services:
|
|||||||
- ./:/home/node/app:Z
|
- ./:/home/node/app:Z
|
||||||
ports:
|
ports:
|
||||||
- ${SERVER_PORT}:3000
|
- ${SERVER_PORT}:3000
|
||||||
command: "npm start"
|
command: bash -c "cd /home/node/app && npm install && npm start"
|
||||||
restart: always
|
restart: always
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: (ps ax | grep -q "[n]ode dist/index.js" && echo "Ok") || exit 1
|
test: (ps ax | grep -q "[n]ode dist/index.js" && echo "Ok") || exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user