Skip to content

Commit 82aedaa

Browse files
docs(guides): the full-stack Docker option lists a restart policy among its production steps
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Gregory Boch <boch@prisma.io>
1 parent 7bf02f4 commit 82aedaa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • apps/docs/content/docs/guides/deployment

‎apps/docs/content/docs/guides/deployment/docker.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ The prompt above runs [`npx prisma@latest init`](/cli/init) in its first step. I
582582

583583
## Next steps
584584

585-
- Deploy the image to a server with a database it can reach: a PostgreSQL that runs on your own machine is not reachable from a server elsewhere. Set `DATABASE_URL` in `.env.prod` to a hosted PostgreSQL, such as [Prisma Postgres](/postgres) or another provider, and remove the `postgres_db` service and the `server` service's `depends_on` entry for it from `docker-compose.yml`. To deploy the whole Compose stack to one server instead, keep `postgres_db`, and before you do, give it production credentials, a named volume for `/var/lib/postgresql/data`, and no published port, and use the same credentials in `DATABASE_URL` in `.env.prod`.
585+
- Deploy the image to a server with a database it can reach: a PostgreSQL that runs on your own machine is not reachable from a server elsewhere. Set `DATABASE_URL` in `.env.prod` to a hosted PostgreSQL, such as [Prisma Postgres](/postgres) or another provider, and remove the `postgres_db` service and the `server` service's `depends_on` entry for it from `docker-compose.yml`. To deploy the whole Compose stack to one server instead, keep `postgres_db`. Before you do, give it production credentials, a named volume for `/var/lib/postgresql/data` and no published port, use the same credentials in `DATABASE_URL` in `.env.prod`, and add a restart policy such as `restart: unless-stopped` to both services.
586586
- Change the schema in `src/prisma/contract.prisma`, run `npm run contract:emit`, then `npx prisma migration plan --name <change>`. Start the standalone database from step 2 again and run `npx prisma db migrate`, so your next `migration plan` starts after this change. The next `docker compose up --build` applies the new migration to the app's database. See [Generating a migration](/orm/migrations/generating-a-migration) and [Applying a migration](/orm/migrations/applying-a-migration).
587587
- [Learn the fundamentals](/orm/fundamentals/reading-data): filtering, sorting, pagination, and writes.
588588
- [Read the Prisma ORM overview](/orm) for the concepts behind contracts and typed queries.

0 commit comments

Comments
 (0)