I’m trying and failing to deploy EHRBase using Google Cloud Compute Engine. I have an instance of postgres that I can conect to I ran the scripts to initialise. But I wanted to understand if anyone has used GCE for Ehrbase, and if the container environment variables in the GCE config will get picked up when the docker image is spun up? I’ve replicated:
DB_URL jdbc:postgresql://xxxxxx:5432/ehrbase
DB_USER_ADMIN ehrbase
DB_PASS_ADMIN ehrbase
DB_USER ehrbase_restricted
DB_PASS ehrbase_restricted
When I log into the container there are clear messages that there is no connectivity to the database. I’ve got an internal IP also so connectivity should be ok.
EDIT: Further investigation seems to indicate that the environment variables are not being interpreted. Tried it in Cloud run also.