Run Keycloak by Postgres and Run Jira by Postgres, on same VM

I have one VM, on this VM we had Jira running by docker-compose, Jira use PostgreSQL as DB,
I want run Keycloak by PostgreSQL on this server too by use docker-compose , I want use default docker-compose in Keycloak github.
Jira use PostgreSQL and Keycloak want use PostgreSQL too.
How I can edit docker-compose for keycloak, run PostgreSQL on different ports and do not have conflict by another PostgreSQL is running by Jira ?