You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
create-payload-app with postgreSQL is missing postgreSQL in docker-compose.yml file #12764
PS: It is strange that the below output says that the project is configured to use yarn when it clearly said that it was using pnpm
Which area(s) are affected? (Select all that apply)
Not sure
Environment Info
> [email protected] payload /Users/jason/src/lbra/website/postgres-bug
> cross-env NODE_OPTIONS=--no-deprecation payload info
! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e.
! For more details about this field, consult the documentation at https://nodejs.org/api/packages.html#packagemanager
ERROR This project is configured to use yarn
For help, run: pnpm help
Binaries:
Node: 20.17.0
npm: 10.8.2
Yarn: 1.22.22
pnpm: N/A
Relevant Packages:
payload: 3.42.0
next: 15.3.0
@payloadcms/db-postgres: 3.42.0
@payloadcms/email-nodemailer: 3.42.0
@payloadcms/graphql: 3.42.0
@payloadcms/live-preview: 3.42.0
@payloadcms/live-preview-react: 3.42.0
@payloadcms/next/utilities: 3.42.0
@payloadcms/payload-cloud: 3.42.0
@payloadcms/plugin-form-builder: 3.42.0
@payloadcms/plugin-nested-docs: 3.42.0
@payloadcms/plugin-redirects: 3.42.0
@payloadcms/plugin-search: 3.42.0
@payloadcms/plugin-seo: 3.42.0
@payloadcms/richtext-lexical: 3.42.0
@payloadcms/translations: 3.42.0
@payloadcms/ui/shared: 3.42.0
react: 19.1.0
react-dom: 19.1.0
Operating System:
Platform: darwin
Arch: arm64
Version: Darwin Kernel Version 24.3.0: Thu Jan 2 20:24:16 PST 2025; root:xnu-11215.81.4~3/RELEASE_ARM64_T6000
Available memory (MB): 65536
Available CPU cores: 10
Reacted by Md Mazedul Islam Khan, yassh, carschandler, Lionel Bersée and Flockimi
Database mismatch: PostgreSQL was selected during setup, but Docker Compose provisions MongoDB.
Package manager mismatch: The installer selected npm, but Docker Compose runs Yarn.
I also noticed that several generated package.json scripts reference pnpm, although I haven't tested whether these cause additional issues.
The generated Docker configuration therefore does not reflect the selections made during project creation.
I would expect the generated Compose configuration to use PostgreSQL and the selected package manager, or for the installer to clearly indicate that the included Docker configuration is only a generic example requiring manual changes.
Activity
JessRynkar commentedon Feb 6, 2026
Hi! Apologies for the long delay in getting a response here, are you still experiencing this on the latest version
v3.75.0?LionelB5 commentedon Feb 16, 2026
Hi @JessRynkar - Confirming the docker-compose.yml is missing postgresql in the latest release.
I am using
[email protected]These are the options I selected when creating the project:
And this is the
docker-composethat is output:blazardsky commentedon Mar 4, 2026
In the
website templateit is still missing as of 3.78.0 but it is there in theblank templatehttps://github.com/payloadcms/payload/blob/main/templates/blank/docker-compose.ymldarylf commentedon Oct 22, 2026
Still reproducible in Payload 3.91.0 (October 22, 2026).
I created a new project using
npx create-payload-app@latestwith the following selections:The project was generated successfully, and
src/payload.config.tscorrectly usespostgresAdapterwithDATABASE_URL.However, the generated
docker-compose.ymlstill contains:There are two inconsistencies:
I also noticed that several generated
package.jsonscripts reference pnpm, although I haven't tested whether these cause additional issues.The generated Docker configuration therefore does not reflect the selections made during project creation.
I would expect the generated Compose configuration to use PostgreSQL and the selected package manager, or for the installer to clearly indicate that the included Docker configuration is only a generic example requiring manual changes.
chore: address six more Payload reports and prepare the fork PR
fix: address 24 Payload read, schema, version and tooling reports (#9)