docker compose restart 時に毎回 10 秒待たされるのは
いわゆる docker run に --init オプションが付いていないとか
compose.yaml に init: true が付いていないとか
そういった系の問題?