Reactive-Resume
Reactive-Resume copied to clipboard
can`t run container
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
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
is the connection string wrong ? or it`s necessary to init tables of resume database ?
I have the same issue, database is up and running, but the app can't connect
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.