Skip to content

create-payload-app with postgreSQL is missing postgreSQL in docker-compose.yml file #12764

Open
@steinybot

Description

@steinybot

Describe the Bug

create-payload-app does not seem to use the docker-compose.yml file from the with-postgres tempalte, it has mongo instead of postgres.

Link to the code that reproduces this issue

https://github.com/steinybot/create-payload-app-postgres-bug

Reproduction Steps

pnpx create-payload-app@latest

answer the prompts with:

postgres-bug
website
PostgreSQL
postgres://postgres:<password>@127.0.0.1:5432/postgres-bug

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

Image

Which area(s) are affected? (Select all that apply)

Not sure

Environment Info

> postgres-bug@1.0.0 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 yarn@1.22.22+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

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: needs-triagePossible bug which hasn't been reproduced yet

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions