Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add restart directive #218

Open
oliverpool opened this issue Mar 13, 2023 · 2 comments
Open

Add restart directive #218

oliverpool opened this issue Mar 13, 2023 · 2 comments

Comments

@oliverpool
Copy link

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
Copy link
Member

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants