Docker JDBC exception

  docker

I am trying to connect my App and MySQL db on docker.
I am getting a "Communication link failure" driver exception.

Please, anyone could help me?

application.properties:

spring.main.allow-bean-definition-overriding=true

spring.liquibase.url=jdbc:mysql://mysql:33060/boardify_game_development
spring.liquibase.user=root
spring.liquibase.password=1234

    spring.rabbitmq.host = 127.0.0.1
    spring.rabbitmq.port = 5672
    spring.rabbitmq.username = guest
    spring.rabbitmq.password = guest
    
    spring.jpa.hibernate.ddl-auto=create
    spring.jpa.show-sql=true
    spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL8Dialect

i create a network and run MySQL container and my App(8080:8080) on the same network.
it still doesnt works

Source: Docker Questions

LEAVE A COMMENT