简体   繁体   中英

How multiple docker containers can be used on Heroku?

I want to use two containers Golang web server and Mysql Database. And then I prepared two Dockerfiles and pushed on Heroku. However web server can not be connected to mysql server.

How is link set from web server to mysql??

Thanks!

You can't link containers in Heroku unless you use the DockHero plugin there (which costs you money), so that you can use Docker Swarm. In your case it would be better just to use the ClearDB MySQL plugin they provide, and only deploy the first container.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM