Skip to content

Can not connect to server #2

@seantma

Description

@seantma

@JensPiegsa Thanks for providing this Docker image.

I've followed your procedures in your README and have successfully launched the OC server under docker. However, I have not been successful in connecting to the 127.0.0.1:8080/OpenClinica service page. The DB_HOST for Postgres was changed to 127.0.0.1 and port mapping to 8080:8080.

I've tried both connecting to my local machine's ip: 192.168.2.2 as well as 127.0.0.1 but all were refused to connection.

Any suggestions on how to further proceed? Thank you for your time!

Sean

Docker script used

sudo docker container run --name oc -h oc -d -v oc-data:/usr/local/tomcat/openclinica.data \
 -p 8080:8080 \
 -e LOG_LEVEL=INFO \
 -e TZ=UTC-1 \
 -e DB_TYPE=postgres \
 -e DB_HOST=127.0.0.1 \
 -e DB_NAME=openclinica \
 -e DB_USER=clinica \
 -e DB_PASS=password \
 -e DB_PORT=5432 \
 -e SUPPORT_URL="https://www.openclinica.com/community-edition-open-source-edc/" \
 piegsaj/openclinica:oc-3.13

Docker listing

-> % sudo docker container ls                                                                    
CONTAINER ID        IMAGE                         COMMAND                  CREATED             STATUS              PORTS                    NAMES
25b8e74e43ba        piegsaj/openclinica:oc-3.13   "/run.sh"                4 minutes ago       Up 4 minutes        0.0.0.0:8080->8080/tcp   oc
4a46778d76ad        postgres:9.5                  "docker-entrypoint..."   About an hour ago   Up About an hour    0.0.0.0:5432->5432/tcp   ocdb

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions