Add retries to nailgun syncdb for docker deployment

Nailgun sometimes fails because postgres is
not ready yet when nailgun container starts.

blueprint fuel-containerization-of-services

Change-Id: I4b05effdefe5eded3d6ca43bda145ff4e67e3f6c
Merge "Add retries to nailgun syncdb for docker deployment"