OS cluster configuration

I’m trying to setup OS cluster on different hosts with SSL certificates in Docker container. When I start docker-compose where all 3 nodes on the same host(the same host, docker network) are, it works. When I split nodes to different hosts it stops working.
Nodes can’t connect to each other, I don’t know why.
Errors looks like:

[2022-10-12T06:21:10,808][ERROR][o.o.s.s.t.SecuritySSLNettyTransport] [os02] Exception during establishing a SSL connection: javax.net.ssl.SSLHandshakeException: Received fatal alert: certificate_unknown
[2022-10-12T06:21:09,880][WARN ][o.o.d.HandshakingTransportAddressConnector] [os02] [connectToRemoteMasterNode[10.27.0.49:9300]] completed handshake with [{os03}{-F4G7vd_Qc69dyKOWh3KBQ}{3hU4ZOMFQlukjyfOPET7XQ}{172.20.0.2}{172.20.0.2:9300}{dimr}{shard_indexing_pressure_enabled=true}] but followup connection failed
[2022-10-12T06:21:09,811][WARN ][o.o.t.TcpTransport ] [os02] exception caught on transport layer [Netty4TcpChannel{localAddress=/172.22.0.2:9300, remoteAddress=/10.27.0.31:51974}], closing connection

May be someone have a working configuration or an advice how to fix it?