we have virtual machine on azure and we run mysql inside docker as image/container. on vm we can connect to mysql using following command “mysql -h localhost -P 13306 --protocol=tcp -u root -p” but when we try to connect to it remotely over internet, it does not allow to make connection to mysql, mysql image configurations are below
echo_mysql: image: echo_mysql container_name: echo_mysql build: mysql/ restart: always ports: - 13306:3306 env_file: - mysql/mysql.env volumes: - /docker_storage/echo_mysql:/var/lib/mysql networks: - echo_net
How we can enable mysql image to accept connection remotely.?