Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem at setting up the starter with different database credentials #75

Open
abusarah-tech opened this issue Oct 29, 2024 · 1 comment

Comments

@abusarah-tech
Copy link

abusarah-tech commented Oct 29, 2024

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

  1. Create database instance using docker compose with the following setup
services:
  medusa-db:
    image: postgres:14
    environment:
      - POSTGRES_DB=medusa-backend
      - POSTGRES_USER=username
      - POSTGRES_PASSWORD=password
    ports:
      - "5432:5432"

  medusa-cache:
    image: redis:6
    ports:
      - "6379:6379"
  1. Clone the repository and run 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

image

@abusarah-tech abusarah-tech changed the title Setting up the starter with different database credentials Problem at setting up the starter with different database credentials Oct 29, 2024
@abusarah-tech
Copy link
Author

abusarah-tech commented Oct 29, 2024

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant