Update compose-plesk.yaml to include Redis service wait condition and correct main entry point for application
This commit is contained in:
parent
911b16b67a
commit
48116bf160
@ -48,7 +48,8 @@ services:
|
||||
command: >
|
||||
sh -c "
|
||||
until nc -z database 5432; do echo 'waiting for db'; sleep 2; done;
|
||||
pnpm dlx prisma migrate deploy && node dist/main
|
||||
until nc -z cache 6379; do echo 'waiting for redis'; sleep 2; done;
|
||||
pnpm dlx prisma migrate deploy && node dist/main.js
|
||||
"
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:4000/health"]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user