make elasticsearch a sevice
use consul to find elasticsearch and postgresql