Complete Docker compose deployment setup
- Add an API container entrypoint that waits for PostgreSQL, runs Prisma migrations, seeds demo data, and then starts NestJS. - Keep Prisma CLI and seed dependencies available in the API runtime image and copy seed source dependencies into the container. - Add Docker Compose healthchecks and health-based startup ordering for PostgreSQL, API, and Nginx web services. - Add Docker initialization environment switches for migrations, seed, and startup retries. - Add a dedicated Docker deployment guide covering services, ports, initialization, HTTPS, production variables, backup, restore, and troubleshooting. - Update README, AGENTS, installation, deployment, progress, and environment example docs for the Dockerized workflow.
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
"test": "vitest run",
|
||||
"test:e2e": "playwright test",
|
||||
"prisma:generate": "prisma generate --schema server/prisma/schema.prisma",
|
||||
"prisma:deploy": "prisma migrate deploy --schema server/prisma/schema.prisma",
|
||||
"prisma:migrate": "prisma migrate dev --schema server/prisma/schema.prisma",
|
||||
"prisma:seed": "prisma db seed --schema server/prisma/schema.prisma"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user