I have a docker-compose file which specify dns and dns-search for each container. Also each container has a restart directive. The docker-compose file orchestrates a jenkins