How to install and configure metabase on compute engine gcp?

Im stuck trying to figure out how and what is the best practice to install metabase on compute engine.

here is what i have tried so far

i install docker and then install metabase with the following

docker run -d
-p 3000:3000
-e "MB_DB_TYPE=mysql"
-e "MB_DB_DBNAME=my_db"
-e "MB_DB_PORT=3306"
-e "MB_DB_USER=my_user"
-e "MB_DB_PASS=mypass"
-e "MB_DB_HOST=34.30.69.129"
--name metabase
metabase/metabase

but it fails to connect and metabse shutsdown

Make sure you can connect to the database with the mysql command using your credentials from the host running the container. If you can’t, fix that first.

Usually connection issues are due to an incorrect username and password, missing grants in the MySQL server, or missing firewall rules/security policy rules/network ACLs between the client and server. The MySQL server log can help diagnose these issues.

For security, do NOT expose your MySQL server to the public Internet. Make sure only IPs that need access to the database server can access the port.

thats a fake ip i put in here

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.