Elasticsearch Cannot find master node

Hello Everyone,
So I have two different instances of ubuntu server running. Each has a docker compose file. One of them has a base docker-compose file that launches two instances of elasticsearch, and kibana. This loads fine and the nodes can talk to each other and form a cluster. Then I have another docker-compose file on another ubuntu server. This instance spins up 3 elasticsearch nodes who all have the first ubuntu server instance’s IP set as their discovery.seed_hosts. None of these three nodes can connect to the first cluster.

They repeatedly give the “master not discovered yet, this node has not previously joined a bootstrapped (v7+) cluster, and [cluster.initial_master_nodes] is empty on this node:” error.

Cluster Compose File: cluster compose - Pastebin.com
Server Compose File: server compose - Pastebin.com

Any help would be appreciated