Closed abusarah-tech closed 14 hours ago
Additionally it would be nice to provide a docker-compose.yml
file to start with in this case. This is the docker-compose.yml
file that I used to circumvent the problem for now.
services:
medusa-db:
image: postgres:latest
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
ports:
- "5432:5432"
medusa-cache:
image: redis:6
ports:
- "6379:6379"
Hey @abusarah-tech, apologies for the delay, I was on vacation. Did you manage to figure this out yet?
Hey @abusarah-tech, apologies for the delay, I was on vacation. Did you manage to figure this out yet?
Hey, welcome back! I saw you got back to a surprise from @VariableVic 😄 I haven't still figured out how to use a postgres instance that requires authentication.
Thanks! Can you open a PR on this repo with the docker changes? Let me know how I can reproduce the issue, will dig in later today.
closing due to inactivity, feel free to reopen if this is still an issue with the new repo setup
Bug report
Describe the bug
Trying to set up the b2b starter with an existing database instance that has different credentials (username, password) but it throws an error. (see the screenshot below)
System information
Node.js version: v22.8.0 Database: Postgres 14 Operating system: WSL (Ubuntu 22.04)
Steps to reproduce the behavior
Create database instance using docker compose with the following setup
yarn install && yarn setup
Expected behavior
It should to prompt me to enter the database credentials then the database name then complete the setup.
Screenshots