Docker0 - use AWS public IP

Expected behavior

when the docker-compose is up, need the container to be published with aws public IP

Actual behavior

when using with Docker0 the network default is: 172.17.0.0/16 --> I want to change it to the ec2 public IP so the container will come-up with public IP

Additional Information

Steps to reproduce the behavior