The respository contains Dockerfiles to set up the various OHDSI tools.
The OHDSI WebAPI contains all OHDSI services that can be called from OHDSI applications.
Use the following command to spin up the WebAPI. Make sure to change the values of the environment variables as needed.
docker run \
--name ohdsi-webapi \
-p 8080:8080 \
-e "DBHOST=docker.for.mac.host.internal" \
-e "DBNAME=cdm" \
-e "DBUSER=postgres" \
-e "DBPASS=s3cret" \
-e "DBADMINUSER=postgres" \
-e "DBADMINPASS=s3cret" \
-e "DBCDMSCHEMA=public" \
-e "DBWEBAPISCHEMA=webapi" \
uwcarg/ohdsi-webapi:2.3.0-postgres
💡 docker.for.mac.host.internal
is a magic constant in Docker for macOS
that points to the IP address of the host machine.
Navigate to the following URLS to test: