add docker restart policies

This commit is contained in:
Kenneth Bingham 2023-11-30 17:00:59 -05:00
parent ad60ea4052
commit 2fca74e72e
No known key found for this signature in database
GPG Key ID: 31709281860130B6
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: