- 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.
15 lines
527 B
Plaintext
15 lines
527 B
Plaintext
# Backend API development defaults.
|
|
API_PORT=3100
|
|
API_BODY_LIMIT="100mb"
|
|
CORS_ORIGIN="http://localhost:3001,http://localhost:4002,https://localhost:4443"
|
|
DATABASE_URL="postgresql://surclaw:surclaw_dev_password@localhost:5433/surclaw?schema=public"
|
|
SESSION_SECRET="change-me-in-production"
|
|
SESSION_COOKIE_SECURE="false"
|
|
FILE_STORAGE_DIR="./uploads"
|
|
RUN_DB_MIGRATIONS="true"
|
|
RUN_DB_SEED="true"
|
|
DOCKER_STARTUP_RETRIES=30
|
|
DOCKER_STARTUP_RETRY_DELAY=2
|
|
VITE_API_PROXY_TARGET="http://localhost:3100"
|
|
VITE_ENABLE_LOCAL_FALLBACK="true"
|