The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
docs(self-host): suggest a URL-safe generator for the Postgres password (#26759)
Om Lahore6c608b0e684e
diff --git a/packages/twenty-docker/.env.example b/packages/twenty-docker/.env.exampleindex ded92414aa5..007b0aff0e7 100644--- a/packages/twenty-docker/.env.example+++ b/packages/twenty-docker/.env.example@@ -1,6 +1,7 @@TAG=latest#PG_DATABASE_USER=postgres+# Use openssl rand -hex 32 for the password, it goes into PG_DATABASE_URL as is#PG_DATABASE_PASSWORD=replace_me_with_a_strong_password_without_special_characters#PG_DATABASE_HOST=db#PG_DATABASE_PORT=5432@@ -10,7 +11,7 @@ TAG=latestSERVER_URL=http://localhost:3000-# Use openssl rand -base64 32 for each secret+# Use openssl rand -base64 32 for each secret below# ENCRYPTION_KEY=replace_me_with_a_random_string# FALLBACK_ENCRYPTION_KEY= # set to the previous ENCRYPTION_KEY during a rotation# APP_SECRET= # legacy: only required for instances that pre-date ENCRYPTION_KEYdiff --git a/packages/twenty-docs/developers/self-host/capabilities/docker-compose.mdx b/packages/twenty-docs/developers/self-host/capabilities/docker-compose.mdxindex 19cc0a0e35c..7f6441db619 100644--- a/packages/twenty-docs/developers/self-host/capabilities/docker-compose.mdx+++ b/packages/twenty-docs/developers/self-host/capabilities/docker-compose.mdx@@ -74,7 +74,11 @@ Follow these steps for a manual setup.4. **Set the Postgres Password**- Update the `PG_DATABASE_PASSWORD` value in the .env file with a strong password without special characters. The password is inserted unencoded into the Postgres connection URL, so characters such as `@`, `/`, `#` or `%` break the connection string.+ Update the `PG_DATABASE_PASSWORD` value in the .env file with a strong password without special characters. The password is inserted unencoded into the Postgres connection URL, so characters such as `@`, `/`, `#` or `%` break the connection string. Generate one with:++ ```bash+ openssl rand -hex 32+ ``````iniPG_DATABASE_PASSWORD=my_strong_password