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
When running a fresh install with npm create-payload-app@beta, and selecting the "website" template and postgres database, the generated docker-compose.yaml still lists mongo as a service and dependency, rather than postgres. This causes docker compose up to run a crashing instance.
Yeah, this was brought up in the Discord some time ago. I think the answer here was that this is simply an example/sample Docker compose file to be used for dev and testing. The devs are aware of this issue and will likely come out with a fix such that the file will accommodate your chosen database at some point, although it is not a priority right now. See Discord thread here.
Hey @ozzythecoder , we may look at modifying these properly in a programmatic fashion in the future, but for now, having the relevant details commented is all we'll offer.
Describe the Bug
When running a fresh install with
npm create-payload-app@beta
, and selecting the "website" template and postgres database, the generateddocker-compose.yaml
still lists mongo as a service and dependency, rather than postgres. This causesdocker compose up
to run a crashing instance.Would recommend including this section from the "blank" template:
Another option is to include different compose files, but I understand that's probably not super high priority right now. 😅
Link to the code that reproduces this issue
https://github.com/ozzythecoder/docker-mongo-issue-repro
Reproduction Steps
npm create-payload-app@beta
docker compose up
Which area(s) are affected? (Select all that apply)
area: templates
Environment Info
Binaries:
Node: 22.10.0
npm: 10.9.0
Yarn: N/A
pnpm: 9.12.2
Relevant Packages:
payload: 3.0.0-beta.119
next: 15.0.0
@payloadcms/db-postgres: 3.0.0-beta.119
@payloadcms/email-nodemailer: 3.0.0-beta.119
@payloadcms/graphql: 3.0.0-beta.119
@payloadcms/live-preview: 3.0.0-beta.119
@payloadcms/live-preview-react: 3.0.0-beta.119
@payloadcms/next/utilities: 3.0.0-beta.119
@payloadcms/payload-cloud: 3.0.0-beta.119
@payloadcms/plugin-form-builder: 3.0.0-beta.119
@payloadcms/plugin-nested-docs: 3.0.0-beta.119
@payloadcms/plugin-redirects: 3.0.0-beta.119
@payloadcms/plugin-search: 3.0.0-beta.119
@payloadcms/plugin-seo: 3.0.0-beta.119
@payloadcms/richtext-lexical: 3.0.0-beta.119
@payloadcms/translations: 3.0.0-beta.119
@payloadcms/ui/shared: 3.0.0-beta.119
react: 19.0.0-rc-65a56d0e-20241020
react-dom: 19.0.0-rc-65a56d0e-20241020
Operating System:
Platform: darwin
Arch: arm64
Version: Darwin Kernel Version 24.0.0: Tue Sep 24 23:37:25 PDT 2024; root:xnu-11215.1.12~1/RELEASE_ARM64_T6030
Available memory (MB): 18432
Available CPU cores: 12
The text was updated successfully, but these errors were encountered: