I am using the official Github Repo for hmdm-docker. I tried the below "docker-compose.yaml" content to connect from the Headwind MDM Container to the Postgresql Container with a custom host and port. But it's not working well.
postgresql:
image: postgres:12-alpine
networks:
- hmdm-network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${SQL_USER} -d ${SQL_BASE}"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
ports:
- 5434:5432
environment:
POSTGRES_USER: ${SQL_USER}
POSTGRES_PASSWORD: ${SQL_PASS}
POSTGRES_DB: ${SQL_BASE}
POSTGRES_HOST: ${SQL_HOST}
POSTGRES_PORT: ${SQL_PORT}