I'm getting the error in docker logs as "level=fatal msg="x509: cannot validate certificate for <PostgreSQL host ip> because it doesn't contain any IP SANs"
and the docker compose file is given below
services:
test:
restart: unless-stopped
ports:
- '127.0.0.1:8080:8080'
image: gcr.io/test/test.2.0.7
environment:
- ENV_TYPE=dev
- AUTH0_AUD=abcdfgrthwjsjxsjxsx
- AUTH0_ISS=https://testus.auth0.com/
- PG_HOSTNAME=<ip address of Postgresql>
- PG_PORT=5432
- PG_USER=Test
- PG_PASSWORD=test123
- PG_DB_NAME=test_db
- VAULT_ID=hello
- APP_BUFFER_SIZE_DB_READ=25000
- APP_BUFFER_SIZE_DB_WRITE=25000
- APP_SSL_MODE=True
- NODE_ADDR=wss://test.example.net/rpc
- SECRET_SEED=0x9089009fcb34b31da88c69aca70836d4c17c4d0e827fa1864
- ACTIVATION_DEST_BUCKET=test-bucket
and the postgressql configuration using terraform is