use headless mode (no tty); allow override API endpoint env var

This commit is contained in:
Kenneth Bingham 2023-02-21 21:28:02 -05:00
parent 62a689432d
commit f036e4d089
No known key found for this signature in database
GPG Key ID: 31709281860130B6
3 changed files with 8 additions and 10 deletions

View File

@ -8,7 +8,7 @@ services:
volumes:
- zrok_env:/mnt/.zrok
zrok-enable:
image: docker.io/openziti/zrok:enable-headless # FIXME: resume :latest if >= :0.3.2
image: docker.io/openziti/zrok
depends_on:
zrok-enable-init:
condition: service_completed_successfully
@ -29,17 +29,15 @@ services:
environment:
HOME: /mnt
ZROK_ENABLE_TOKEN:
ZROK_API_ENDPOINT: https://api.zrok.io/
ZROK_API_ENDPOINT: ${ZROK_API_ENDPOINT:-https://api.zrok.io/}
zrok-private-access:
image: docker.io/openziti/zrok
command: access private --bind 0.0.0.0:9191 ${ZROK_ACCESS_TOKEN}
command: access private --headless --bind 0.0.0.0:9191 ${ZROK_ACCESS_TOKEN}
depends_on:
zrok-enable:
condition: service_completed_successfully
ports:
- 9191:9191 # expose the zrok private access proxy to the Docker host
stdin_open: true # FIXME: remove when --headless is available
tty: true # FIXME: remove when --headless is available
volumes:
- zrok_env:/mnt/.zrok
environment:

View File

@ -8,7 +8,7 @@ services:
volumes:
- zrok_env:/mnt/.zrok
zrok-enable:
image: docker.io/openziti/zrok:enable-headless # FIXME: resume :latest if >= :0.3.2
image: docker.io/openziti/zrok
depends_on:
zrok-enable-init:
condition: service_completed_successfully
@ -29,10 +29,10 @@ services:
environment:
HOME: /mnt
ZROK_ENABLE_TOKEN:
ZROK_API_ENDPOINT: https://api.zrok.io/
ZROK_API_ENDPOINT: ${ZROK_API_ENDPOINT:-https://api.zrok.io/}
zrok-private-share:
image: docker.io/openziti/zrok
command: share private --headless http://zrok-test:8080
command: share private --headless http://zrok-test:9090
depends_on:
zrok-enable:
condition: service_completed_successfully

View File

@ -8,7 +8,7 @@ services:
volumes:
- zrok_env:/mnt/.zrok
zrok-enable:
image: docker.io/openziti/zrok:enable-headless # FIXME: resume :latest if >= :0.3.2
image: docker.io/openziti/zrok
depends_on:
zrok-enable-init:
condition: service_completed_successfully
@ -29,7 +29,7 @@ services:
environment:
HOME: /mnt
ZROK_ENABLE_TOKEN:
ZROK_API_ENDPOINT: https://api.zrok.io
ZROK_API_ENDPOINT: ${ZROK_API_ENDPOINT:-https://api.zrok.io/}
zrok-public-share:
image: docker.io/openziti/zrok
command: share public --headless http://zrok-test:9090