Does anyone have an example docker-compose file to run both app smith and mysql? I would like to use a local mysql container as a datasource but keep getting connection refused regardless of if I specify 1270.0.1 or the containers IP
Hey Joey
Thanks for trying out Appsmith. Glad to have you as a part of our community.
In order to connect to databases running on your local machine, can you check out: How do I connect Appsmith to a local Mysql/Postgres instance? ?
In your specific case, if you are running MySQL via the same docker-compose.yaml
file as Appsmith, then the hostname to be used within Appsmith is the name of your MySQL service in the Compose file. For eg, if MySQL service name is local-mysql
, then the hostname that Appsmith would required to connect to the DB would be local-mysql
Let me know if this works for you.