This paper proposes an economic and resilient operation architecture for a coupled hydrogen-electricity energy system operating at port. The architecture is a multi-objective optimization problem, which includes the energy system optimal economy as the goal orientation and the optimal resilience as the goal orientation. The optimal resilience orientation looks for the best resilience performance of the port through reasonable energy management including (1) reducing the amount of electricity purchased by the port power grid from the external power grid (2) improving the energy level of electric energy storage (3) improving the energy level of hydrogen energy storage. Taking the actual coupled hydrogen-electricity energy system of Ningbo-Zhoushan Port as an example, four typical scenarios were selected according to renewable generation and load characteristics, and a comparative analysis was carried out during the oriented operation. The results show that although the resilience orientation increases the operating cost compared with the economic orientation, the four scenarios reduce the load shedding by 44.84%, 30.26%, 48.49% and 34.37% respectively when the external power grid is disconnected. The impact of changes in resilience-oriented weight coefficients and hydrogen price on system resilience performance was investigated to provide more references for decision makers.