Merge pull request #469 from openziti/docker-restart-policies

add docker restart policies
This commit is contained in:
Kenneth Bingham 2023-12-01 15:20:13 -05:00 committed by GitHub
commit 15db414992
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 1 deletions

View File

@ -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:

View File

@ -24,6 +24,7 @@ services:
zrok-share:
image: ${ZROK_CONTAINER_IMAGE:-docker.io/openziti/zrok}
restart: no
entrypoint:
- bash
- -euxc

View File

@ -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

View File

@ -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: