Problem in reaching ssh vm docker keycloak

Hi all, i started a keycloak server in developer mode on a ubuntu server vm using this docker-compose file.

version: ‘3.3’
services:
keycloak:
image: jboss/keycloak:latest
ports:
- “8024:8080”
environment:
- KEYCLOAK_USER=admin
- KEYCLOAK_PASSWORD=password

I access this vm via ssh with private and public key.
On the vm the container is up and running but if i try to make a tunnel to reach the WebUI of keycloack on the localhost:8024 i can’t reach it.

If i repeat the steps on a local VM with ubuntu 20.04 the server start and i can reach it via vm browser. So the problem is in the communication with the ubuntu server vm.

Can someone help me?
Thanks