How to link Wordpress and MySQL containers on different machines

Is it possible to link Wordpress and MySQL running on independent containers on different host. If its possible can someone guide me how to do it?

Thanks in advance.

Figure out how to solve this problem; it should be in better Wordpress tutorials.

Once you’ve done this, on the system running MySQL, make sure to run its container with -p5432:5432, and configure Wordpress to point at the host running MySQL; it’s not relevant that either happens to be running inside a container.