Docker service Healthstatus unhealthy

my container has the following healthcheck: HEALTHCHECK --interval=10s
CMD node /tmp/ng-rt/scripts/healthchecker.js . When I do a Docker run everything works fine and after 3 min my container is healthy. However if I use Docker service I can c that each tasks runs for approx. 40 sec and then end/shutdown and starts a new task which means my service never start completely or gets to the status healthy. Are there any specific options that are different than Docker Run ? Best Mike