Open oliverpool opened 1 year ago
Do we want an auto restart per default or is this user's responsability to add something like a enabled systemd one shot service to run docker-compose up?
I personally think that since docker-compose
is more or less a replacement of systemd, it should be an option (or a default) of the generated yml file.
Managing this service with systemd would make much more sense at the container level (one systemd unit per container), where the restart can be managed by systemd.
Currently on reboot of the host the containers won't be restarted.
Adding the
restart: always
directive fixes this (https://stackoverflow.com/a/45193532/3207406).Current workaround: add the following config to all 15 (!!) services