Update compose-plesk.yaml to include Redis service wait condition and correct main entry point for application

This commit is contained in:
T. Narantuya 2025-09-01 17:24:00 +09:00
parent 911b16b67a
commit 48116bf160

View File

@ -48,7 +48,8 @@ services:
command: > command: >
sh -c " sh -c "
until nc -z database 5432; do echo 'waiting for db'; sleep 2; done; 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: healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:4000/health"] test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:4000/health"]