docker postgres can't connect when used in a mono repo

default discord avatar
magicspon
4 weeks ago
4

hello,


This is all of the strange!


I've been playing around with payloadcms, using postgres (via docker). This has been working fine.


I've created a new project, this time using a mono repo. All the payload stuff sits in apps/cms.


For some reason I am no longer able to connect to my postgres db.


The exact same code works when I move the

cms

directory to another location on my machine.


https://github.com/magicspon/next-payloadcms-mono
  • default discord avatar
    icomad
    4 weeks ago

    I'm not gonna be of any help to your problem but I get no errors cloning and running you repo

  • default discord avatar
    magicspon
    4 weeks ago

    spooky.. so it works as expected?



    you should be able to go to

    http://localhost:3030/admin


    I get:



    Sorted... turned my computer off and on again!

    PixelSnap_2023-11-03_at_00.32.462x.png
  • default discord avatar
    Zephury
    4 weeks ago

    Shoulda just listened to tech support 🤣

  • default discord avatar
    mvarendorff
    4 weeks ago

    Was worth a shot 😄

Open the post
Continue the discussion in Discord
Like what we're doing?
Star us on GitHub!

Star

Connect with the Payload Community on Discord

Discord

online

Can't find what you're looking for?

Get help straight from the Payload team with an Enterprise License.