News for hackers. Stuff that matters.
Re:Best practices around creating production ready web apps ... by polskibus on Wednesday June 02, 2021 @01:35AM (#27365224)
Do you bother with linking your docket-composed services with systemd, for coordination during reboot,etc?
Re:Best practices around creating production ready web apps ... by adyus on Wednesday June 02, 2021 @03:14AM (#27365866)
As 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.
Re:Best practices around creating production ready web apps ... by nickjj on Wednesday June 02, 2021 @06:34AM (#27367041)
All 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.