Use null coordinates u and v, where c=1 and u = t-x and v = t+x
Find u1(tau), v1(tau), u2(tau), v2(tau) for worldline 1 and worldline 2, tau being the proper time along the worldline
For light traveling in one direction, u will be constant. For light traveling in the other direction, v will be constant. When u is constant, specifying a value of u will specify some particular light wave. The doppler shift for that wave will be
(du1 / dtau) / (du2 / tau) (or perhaps its reciprocal, depending on which one is the emitter, and how you define the doppler shift. (Was it interval of reception / transmission, or frequency of reception / transmission?).
Both derivatives most be evaluated at the same value of u, which specifies the worldline of some particiular lightwave, the lightwave whose doppler shift is being calculated.
The details of working out the numbers do get involved, but it sees to me that the problem specification is not optiimzed for comprehension of the physics involved, and I wonder how helpful this detailed answer will really be to the original poster.
Perhaps we have another poster who has the false impression that acceleration needs to be referred to another observer (as velocity does), when in fact one can measure one's acceleration without reference to another observer (for example by an onboard accelerometer).
For the details, using the relativistic rocket equations, we can write a generic expression for u(tau) and v(tau), substituting a positive value of a in for one observer and a negative value for the other. It's conveneint to make the distance between them zero at tau=0, rather than some fixed value. Then
u(tau) = (1/a) sinh(a*tau) - (1/a) [cosh(a*tau)-1 ]
v(tau) = (1/a) sinh(a*tau) + (1/a) [cosh(a*tau)+1]
Then du/tau = cosh(a*tau) - sinh(a*tau), but this is tabulated as du/dtau as a function of tau, and we reallly want du/dtau as a function of u. Fiding du/dtau as a funciton of u requires inverting the function u(tau) to find tau(u), which doesn't have a closed form solution as far as I know.