deploy: restart always so containers auto-start after host reboot #51

Merged
janpeter merged 1 commit from fix/restart-always-reboot into main 2026-06-15 14:11:23 +02:00
Owner

unless-stopped does not restart a container that was already stopped when the docker daemon last shut down — and a clean pre-reboot stop marks containers exactly that way. After a host reboot the whole stack stayed down (only the one container already on restart: always came back).

This switches the web and postgres services to restart: always. The migrate one-shot is left unchanged.

Live containers on max2 were already set to always via docker update; this makes it durable across redeploys.

`unless-stopped` does not restart a container that was already stopped when the docker daemon last shut down — and a clean pre-reboot stop marks containers exactly that way. After a host reboot the whole stack stayed down (only the one container already on `restart: always` came back). This switches the `web` and `postgres` services to `restart: always`. The `migrate` one-shot is left unchanged. Live containers on max2 were already set to `always` via `docker update`; this makes it durable across redeploys.
deploy: restart always so containers auto-start after host reboot
All checks were successful
CI / docker-build (pull_request) Successful in 39s
98c077fb6d
unless-stopped does not restart a container that was already stopped when
the docker daemon last shut down (a clean pre-reboot stop marks it so), so
the stack stayed down after a host reboot. always restarts on daemon start.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
janpeter/Media-Organizer!51
No description provided.