3.4.2.2. Use DB Image¶
This part of the documentation explains how to run EHRbase DB in a Docker Container and how to change environment varialbes inside the Container if needed.
3.4.2.2.1. Run DB with default parameters¶
docker pull ehrbase/ehrbase-postgres:11.10
docker run --name ehrdb -d -p 5432:5432 ehrbase/ehrbase-postgres:11.10
3.4.2.2.2. Customization¶
If you want to set specific parameters use environment variables provided with the -e option to the docker run command. This will be used to set the specific parameters for root postgres user password and ehrbase user and password. If not provided the default values will be used.
The following parameters can be set via -e option:
Parameter | Usage | Default |
---|---|---|
POSTGRES_PASSWORD | Password for postgres | postgres |
EHRBASE_USER | ehrbase db username | ehrbase |
EHRBASE_PASSWORD | ehrbase db password | ehrbase |