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: https://pastebin.com/17kHxBu6
Server Compose File: https://pastebin.com/2CCGEdgE

Any help would be appreciated