Ship lines maintained by Red dragon we will call red lines, and those maintained by Blue eye blue lines.
Let an denote the number of good arrangements for an archipelago with n islands. Consider an archipelago with n+1 islands and notice island 1. Let A be the set of all islands which are connected to island 1 with a red line, and let B be the set of all islands which are connected to island 1 with a blue line.
Note that all lines (if there are any) from some island in A to some island in B must be blue. Suppose that's not the case, i.e. that there are islands a∈A and b∈B such that a<b and the line a→b is red. We know that line 1→b is blue, and lines 1→a and a→b are red, hence we can go from a to b using only red lines, and also using only blue lines, which is a contradiction. By the same reasoning we conclude that all lines (if there are any) from some island in B to some island in A must be red.

Let set A contain k∈{0,1,…,n} islands. That means that set B contains n−k islands. Note that islands in the set A must form an archipelago with a good arrangement of ship lines, and the same holds for the set B. On the other hand, for each selection of archipelagos A and B with good arrangements we get exactly one archipelago with n+1 islands and good ship lines arrangement between them.
Now, using mathematical induction, we will prove that an=n!. It is obvious that a0=a1=1. Suppose that ak=k!, for all k≤n, for some positive integer n. By previous reasoning we conclude that
an+1=k=0∑n(kn)akan−k=k=0∑nn!=(n+1)!
Thus, an=n! and finally a2017=2017!.