Hi,
I am trying to setup zrok with docker compose by following the docker compose public share guide (Docker Compose Public Share | Zrok).
It looks like the current compose configuration doesn't set up the environment correctly. After running "docker compose up --detach" and checking the logs with "docker compose logs zrok-share" rather than finding a url I find the following:
zrok-share-1 | WARNING: STATE_DIRECTORY is undefined. Using HOME=/mnt
zrok-share-1 | DEBUG: zrok state directory is /mnt/.zrok
zrok-share-1 | DEBUG: ZROK_SHARE_RESERVED=true
zrok-share-1 | INFO: reading share configuration from environment variables
zrok-share-1 | ERROR: ZROK_TARGET is not defined.
zrok-share-1 | DEBUG: zrok state directory is /mnt/.zrok
zrok-share-1 | DEBUG: ZROK_SHARE_RESERVED=true
zrok-share-1 | INFO: reading share configuration from environment variables
If I run without detach I get the following output:
zrok-init-1 exited with code 0
zrok-enable-1 | DEBUG: zrok state directory is /mnt/.zrok
zrok-enable-1 | WARNING: STATE_DIRECTORY is undefined. Using HOME=/mnt
zrok-enable-1 | INFO: zrok environment is already enabled. Delete '/mnt/.zrok/environment.json' if you want to create a new environment.
zrok-enable-1 exited with code 0
I am using the provided docker compose file and have the token as well as unique name in a .env file in the same directory. Any help would be appreciated.
Thank you!