Admin Guide: Rebooting
- All containers should have
restart: unless-stopped set in the docker-compose.yml file. This results in the respective container being started again automatically if it was running at the time Docker or the host system was shut down (this should work for both reboots and updates of the Docker packages on the host system).
- However, if a container is manually stopped before a reboot/Docker restart, it will not be started again automatically (until you re-start it manually, that is).
- According to Cottage Labs:
- Worker jobs in Sidekiq's queue that have already started but not finished yet at the time of a shutdown/reboot will go into Sidekiq's
failed queue, but may be restarted automatically later on up to 25 times.
- Worker jobs that have not started yet will remain in the queue and be expected when RDMS is up again, because the internal state of the
redis container is persisted on disk.