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

Allow to run Outline on a server with another Watchtower #1255

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AlekSi
Copy link

@AlekSi AlekSi commented Dec 21, 2022

See https://containrrr.dev/watchtower/running-multiple-instances/

com.centurylinklabs.watchtower.enable and --label-enable are kept for backward compatibility.

Closes #48.

@@ -304,6 +304,7 @@ function start_shadowbox() {
local -ar docker_shadowbox_flags=(
--name "${CONTAINER_NAME}" --restart always --net host
--label 'com.centurylinklabs.watchtower.enable=true'
--label 'com.centurylinklabs.watchtower.scope=shadowbox'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this prevent watchtower itself from being updated?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, the label and the flag will be applied simultaneously. So old version without the label and the flag will update itself to a new version with the label and the flag.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed scope name to make it a bit more explicit. PTAL

@AlekSi AlekSi requested a review from fortuna December 23, 2022 18:03
See https://containrrr.dev/watchtower/running-multiple-instances/

`com.centurylinklabs.watchtower.enable` and `--label-enable` are kept for backward compatibility.

Closes Jigsaw-Code#48.
@@ -333,10 +334,12 @@ function start_watchtower() {
# testing). Otherwise refresh every hour.
local -ir WATCHTOWER_REFRESH_SECONDS="${WATCHTOWER_REFRESH_SECONDS:-3600}"
local -ar docker_watchtower_flags=(--name watchtower --restart always \
--label 'com.centurylinklabs.watchtower.enable=true' \
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

furthermore, this change now allows watchtower to update itself
right now every instance of outline-server has its watchtower image stuck on the installation version due to the presence of --label-enable

@AlekSi
Copy link
Author

AlekSi commented Feb 14, 2023

Ping

@AlekSi
Copy link
Author

AlekSi commented Nov 16, 2023

@fortuna poke

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

Successfully merging this pull request may close these issues.

Set Watchtower to selectively watch shadowbox
3 participants