create a service on host using inotify which observe a file shared with Docker container . This host service should restart systemctl when file is changed . Change the file from java container to trigger restart systemctl
inotify
systemctl