fix production db

This commit is contained in:
root
2026-05-17 00:35:35 -04:00
parent 1294109c55
commit be98e3e65d
9 changed files with 150 additions and 0 deletions
+2
View File
@@ -152,6 +152,8 @@ Open `.env.docker.production` and fill in every value. The minimum required secr
| `ACME_EMAIL` | Your email for Let's Encrypt notifications |
| `RESEND_API_KEY` | Resend API key (or configure SMTP vars instead) |
Production now derives `DATABASE_URL` inside the app container from `POSTGRES_HOST`, `POSTGRES_PORT`, `POSTGRES_DB`, `POSTGRES_USER`, and `POSTGRES_PASSWORD` when `DATABASE_URL_FROM_POSTGRES=true`. That avoids Prisma auth failures when the database password contains reserved URL characters such as `@`, `:`, or `/`.
The example file uses `rentaldrivego.ma` for the public site and `app.rentaldrivego.ma` for the marketplace. Adjust them only if you use different hostnames.
#### 5. Start Traefik