I have an api application which works on port 8080 with h2 db and h2-console is working good when I run the application from the IDE.
I have dockerized the project with dockerfile and docker-compose.yml, the project is working without problem, everything seems fine except that I cannot reach the h2-console when I run the project from docker.
Am getting the error: "Sorry, remote connections ('webAllowOthers') are disabled on this server."
I checked some solutions and applied
spring.h2.console.settings.web-allow-others=true
to application-DOCKER.properties and also application.properties file but still cannot see the h2 console when I run the project on docker.
How can I solve this?