I run a Docker Swarm instance with the following restart script:
#!/usr/bin/env sh docker stack rm owlab sleep 10 docker stack deploy --compose-file ./docker-