4 ms·
Do you bother with linking your docket-composed services with systemd, for coordination during reboot,etc?
by polskibus 5y ago
Do you bother with linking your docket-composed services with systemd, for coordination during reboot,etc?
- adyus 5y agoAs long as the docker daemon starts on startup, there's a `restart: always` option in the docker-compose.yml config file that takes care of it. Using `depends_on: [list]` takes care of startup order cleanly.
- nickjj 5y agoAll of the example apps in the blog post use restart: "unless-stopped" which ensures they come up automatically after a reboot or if they crash but can be recovered. Then in dev the restart policy is set to no. This is handled with an environment variable.