How to connect appsmith docker and mysql docker in local ubuntu 20.04(focal)OS

I had installed docker and configured appsmith container(latest) and mysql container(mysql 8.0.29). But I couldn’t connect to mysql database from appsmith application. Following is the status shown in appsmith
“Appsmith server timed out when fetching structure.”
I think this may be ip configuration issue.

But connection to mysql docker from local host is working fine.
mysql docker ip: 172.17.0.2, port 3306
$sudo docker exec -it mysql_docker bash


docker_compos.yml

version: “3”

services:
appsmith:
image: Docker Hub
container_name: appsmith
ports:
- “80:80”
- “443:443”
volumes:
- ./stacks:/appsmith-stacks
restart: unless-stopped
db:
image: mysql/mysql-server:latest
container_name: mysql_docker
ports:
- “3306:3306”


Provided all permission to database user and % against host in mysql.user table


appsith is running in 172.17.0.1

If anybody have solution, Please reply to this.

hi docker community , anybody have idea to solve?