Reactive-Resume icon indicating copy to clipboard operation
Reactive-Resume copied to clipboard

can`t run container

Open wuxiao-ling197 opened this issue 1 year ago • 2 comments

Is there an existing issue for this feature?

  • [X] Yes, I have searched the existing issues and it doesn't exist.

Feature Description

what I do: I add a param in container setting file config.v2.json like 1 according to prisima file datasource

db {
  provider = "postgresql"
  url      = env("DATABASE_URL")
}

but when I start the container it shows me

2024-02-19 11:01:06 Datasource "db": PostgreSQL database "resume", schema "public" at "lindsay.PGsql:5432"
2024-02-19 11:01:06 
2024-02-19 11:01:06 Error: P1001: Can't reach database server at `lindsay.PGsql`:`5432`
2024-02-19 11:01:06 
2024-02-19 11:01:06 Please make sure your database server is running at `lindsay.PGsql`:`5432`.
2024-02-19 11:01:06  ELIFECYCLE  Command failed with exit code 1.
2024-02-19 11:01:07  ELIFECYCLE  Command failed with exit code 1.

my pg info is 1 is the connection string wrong ? or it`s necessary to init tables of resume database ?

wuxiao-ling197 avatar Feb 18 '24 03:02 wuxiao-ling197

I have the same issue, database is up and running, but the app can't connect

fluentnumbers avatar Apr 09 '24 15:04 fluentnumbers

This looks like a connectivity/network issue. The docker container should have access to the postgres instance. If your postgres service is running outside the docker network, there might be some additional network configuration necessary for your app container to reach the database.

There's nothing wrong with the connection string as far as I see.

AmruthPillai avatar Apr 09 '24 18:04 AmruthPillai