Within my Docker yml both the rocketchat container and the oauth container are on the same network.
Then under the custom oauth settings the url is set to the https://{OAuth Web Address}/oauth then the token path needs to be set to http://{OAuth Docker Container}/oauth/token.