Docker Compose - dev ops

Send request to other server within docker-compose network


# an example; notice we still had to specify the port in which to connect, otherwise it will default to 80
# game-server-1 is the name of our service in our docker-compose file; docker-compose DNS looks up the internal IP for us.

@bp.route('/test_request_to_game_server')
def test_request_to_game_server():
    resp = requests.get('http://game-server-1:5001/test_get_request_from_website')
    return jsonify({'message': 'sent request'})