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

Unable to connect to running container #7

Open
Ebeid opened this issue Aug 23, 2018 · 0 comments
Open

Unable to connect to running container #7

Ebeid opened this issue Aug 23, 2018 · 0 comments

Comments

@Ebeid
Copy link

Ebeid commented Aug 23, 2018

I used to the following command on my macOS High Sierra

docker run --name pacs-postgres \
           -p 5432:5432 \
           -e POSTGRES_DB=pacsdb \
           -e POSTGRES_USER=pacsuser \
           -e POSTGRES_PASSWORD=pacspassword \
           -v /Users/ebeid/dcm4chee-arc/db:/var/lib/postgresql/data \
           -d dcm4che/postgres-dcm4chee:10.0-12

but I'm unable to connect to that running container from my app or from pgAdmin. These are my application.properties values:

spring.datasource.url=jdbc:postgresql://localhost:5432/pacsdb
spring.datasource.username=pacsuser
spring.datasource.password=pacspassword
spring.datasource.driver-class-name=org.postgresql.Driver

and this what I used for pgAdmin:

image

What should be the values ?

Thanks,
Ebeid

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