dcm4che-dockerfiles / dcm4chee-arc-psql

35 stars 50 forks source link

Unable to connect to running container #7

Open Ebeid opened 6 years ago

Ebeid commented 6 years ago

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