mirror of
https://github.com/openziti/zrok.git
synced 2025-02-18 03:01:02 +01:00
add docker restart policies
This commit is contained in:
parent
ad60ea4052
commit
2fca74e72e
@ -24,6 +24,7 @@ services:
|
|||||||
|
|
||||||
zrok-access:
|
zrok-access:
|
||||||
image: ${ZROK_CONTAINER_IMAGE:-docker.io/openziti/zrok}
|
image: ${ZROK_CONTAINER_IMAGE:-docker.io/openziti/zrok}
|
||||||
|
restart: unless-stopped
|
||||||
command: access private --headless --bind 0.0.0.0:9191 ${ZROK_ACCESS_TOKEN}
|
command: access private --headless --bind 0.0.0.0:9191 ${ZROK_ACCESS_TOKEN}
|
||||||
depends_on:
|
depends_on:
|
||||||
zrok-enable:
|
zrok-enable:
|
||||||
|
@ -24,6 +24,7 @@ services:
|
|||||||
|
|
||||||
zrok-share:
|
zrok-share:
|
||||||
image: ${ZROK_CONTAINER_IMAGE:-docker.io/openziti/zrok}
|
image: ${ZROK_CONTAINER_IMAGE:-docker.io/openziti/zrok}
|
||||||
|
restart: no
|
||||||
entrypoint:
|
entrypoint:
|
||||||
- bash
|
- bash
|
||||||
- -euxc
|
- -euxc
|
||||||
|
@ -26,7 +26,8 @@ services:
|
|||||||
# reserve zrok frontend subdomain and start sharing the target
|
# reserve zrok frontend subdomain and start sharing the target
|
||||||
zrok-share:
|
zrok-share:
|
||||||
image: ${ZROK_CONTAINER_IMAGE:-docker.io/openziti/zrok}
|
image: ${ZROK_CONTAINER_IMAGE:-docker.io/openziti/zrok}
|
||||||
entrypoint: bash -x zrok-share.bash
|
restart: unless-stopped
|
||||||
|
entrypoint: zrok-share.bash
|
||||||
depends_on:
|
depends_on:
|
||||||
zrok-enable:
|
zrok-enable:
|
||||||
condition: service_completed_successfully
|
condition: service_completed_successfully
|
||||||
|
@ -27,6 +27,7 @@ services:
|
|||||||
# provision a temporary zrok frontend subdomain and start sharing the backend target
|
# provision a temporary zrok frontend subdomain and start sharing the backend target
|
||||||
zrok-share:
|
zrok-share:
|
||||||
image: ${ZROK_CONTAINER_IMAGE:-docker.io/openziti/zrok}
|
image: ${ZROK_CONTAINER_IMAGE:-docker.io/openziti/zrok}
|
||||||
|
restart: no
|
||||||
entrypoint: zrok-share.bash
|
entrypoint: zrok-share.bash
|
||||||
depends_on:
|
depends_on:
|
||||||
zrok-enable:
|
zrok-enable:
|
||||||
|
Loading…
Reference in New Issue
Block a user