# For MySQL, you should open container ports for connection. -p 3306:3306 # add this part for cli commands # for yaml files add the part below ports: - 3306:3306