Spring Boot + MySQL Docker Compose: port exposure refused connection
Spring Boot + MySQL + Docker here. I have the following docker-compose.yml: version: "3.8" services: myappws_mono_db: image: mysql:8.0.32 restart: unless-stopped environment: - MYSQL_ROOT_PASSWORD=$MAIN_DB_ROOT_PASSWORD - MYSQL_DATABASE=$MAIN_DB_DATABASE - MYSQL_CHARSET=utf8mb4 - MYSQL_COLLATION=utf8mb4_0900_ai_ci - MYSQL_ENGINE=InnoDB ports: - $MAIN_DB_PORT:$MAIN_DB_DOCKER_PORT volumes: - db:/var/lib/mysql myappws: depends_on: -…