Matrix/Synapse - run two docker containers on local and send a message from one to another via client

Job ID: 32156200

Budget: $30 – $250 USD

I want to deploy 2 sets of 2 services(synapse/element) in 2 separate docker networks via docker-compose.yaml.

Use this image (matrix synapse server)
https://hub.docker.com/r/matrixdotorg/synapse/
And this image as a client:
https://hub.docker.com/r/avhost/docker-matrix-element

I expect to run this command:
docker-compose -p red --env-file .env_red -f docker-compose.red.yaml up
docker-compose -p blue --env-file .env_blue -f docker-compose.blue.yaml up

Expected output:
I can login to both synapse server instances via element client on 2 separate browsers locally and send a message from one matrix synapse server to another.
I expect you to instruct me with any changes needed to be done on my iOS (like change /etc/hosts to add local domains etc).
Materials:
I need an output like in this demo: https://github.com/matrix-org/synapse/tree/develop/demo but dockerized. (Following demo allows to run 3 servers locally that are able to communicate, with TLS off etc.)