Thank you Robert_Walters for your advise, i removed the mongo1, now my connect logs (docker compose logs -f connect), is this a correct mongodb atlas connection —>
connect | [2022-07-25 17:08:07,557] INFO Opened connection [connectionId{localValue:30, serverValue:112163}] to cluster0-shard-00-02.ebt7p.mongodb.net:27017 (org.mongodb.driver.connection)```