Creating your network is best for communicating with your front and back end. You can refer to the networking docs by Docker.
Docker