OpenSlides / openslides-manage-service

Manage service for OpenSlides 4+
MIT License
4 stars 12 forks source link

Add `restart` directive #218

Open oliverpool opened 1 year ago

oliverpool commented 1 year ago

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

    AdditionalContent:
      restart: always
normanjaeckel commented 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?

oliverpool commented 1 year ago

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.