From 2fca74e72e0869cd6bac1f1d1690d7836dda669a Mon Sep 17 00:00:00 2001 From: Kenneth Bingham Date: Thu, 30 Nov 2023 17:00:59 -0500 Subject: [PATCH] add docker restart policies --- docker/compose/zrok-private-access/compose.yml | 1 + docker/compose/zrok-private-share/compose.yml | 1 + docker/compose/zrok-public-reserved/compose.yml | 3 ++- docker/compose/zrok-public-share/compose.yml | 1 + 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docker/compose/zrok-private-access/compose.yml b/docker/compose/zrok-private-access/compose.yml index 3044a528..1138cd97 100644 --- a/docker/compose/zrok-private-access/compose.yml +++ b/docker/compose/zrok-private-access/compose.yml @@ -24,6 +24,7 @@ services: zrok-access: image: ${ZROK_CONTAINER_IMAGE:-docker.io/openziti/zrok} + restart: unless-stopped command: access private --headless --bind 0.0.0.0:9191 ${ZROK_ACCESS_TOKEN} depends_on: zrok-enable: diff --git a/docker/compose/zrok-private-share/compose.yml b/docker/compose/zrok-private-share/compose.yml index d3999264..f94b0563 100644 --- a/docker/compose/zrok-private-share/compose.yml +++ b/docker/compose/zrok-private-share/compose.yml @@ -24,6 +24,7 @@ services: zrok-share: image: ${ZROK_CONTAINER_IMAGE:-docker.io/openziti/zrok} + restart: no entrypoint: - bash - -euxc diff --git a/docker/compose/zrok-public-reserved/compose.yml b/docker/compose/zrok-public-reserved/compose.yml index 08904ffa..b0612fa3 100644 --- a/docker/compose/zrok-public-reserved/compose.yml +++ b/docker/compose/zrok-public-reserved/compose.yml @@ -26,7 +26,8 @@ services: # reserve zrok frontend subdomain and start sharing the target zrok-share: image: ${ZROK_CONTAINER_IMAGE:-docker.io/openziti/zrok} - entrypoint: bash -x zrok-share.bash + restart: unless-stopped + entrypoint: zrok-share.bash depends_on: zrok-enable: condition: service_completed_successfully diff --git a/docker/compose/zrok-public-share/compose.yml b/docker/compose/zrok-public-share/compose.yml index 0d6dc7d7..e0c54c1f 100644 --- a/docker/compose/zrok-public-share/compose.yml +++ b/docker/compose/zrok-public-share/compose.yml @@ -27,6 +27,7 @@ services: # provision a temporary zrok frontend subdomain and start sharing the backend target zrok-share: image: ${ZROK_CONTAINER_IMAGE:-docker.io/openziti/zrok} + restart: no entrypoint: zrok-share.bash depends_on: zrok-enable: