H2 console not working on Docker (remote connections ('webAllowOthers') are disabled)
i had the same problem.I found this answer after researching this problem.
Before starting jar in the Dockerfile, you can make it start by giving the following arguments. ("-web -webAllowOthers -tcp -tcpAllowOthers -browser")
My Dockerfile;
FROM openjdk:8-jdk-alpineADD target/*.jar app.jarENTRYPOINT ["java", "-jar", "/app.jar", "-web -webAllowOthers -tcp -tcpAllowOthers -browser"]EXPOSE 8080
In this way, I hope there will be no problems.