Environment
Both images read these variables. A flag after the image name overrides the variable that sets it.
| Variable | Image | Sets |
|---|---|---|
ZSHOT_ | Both | The license key, as --license-key |
ZSHOT_ | Both | --navigator-credential-secret |
ZSHOT_ | zshot-server | --server-bind-port, which the health check follows. Default 3000 |
PORT | zshot-server | The port when ZSHOT_ is unset, as Railway, Render and Heroku inject it |
ZSHOT_ | zshot-server | --server-bind-address. Default 0. |
ZSHOT_ | zshot-server | --server-token-auth |
ZSHOT_ | zshot-server | --server-basic-auth, as user:password |
ZSHOT_ | zshot-server | --server-signed-url, as hmac-sha256:<secret> |
ZSHOT_ | zshot-server | --server-signed-url-max-age |
ZSHOT_ | zshot-server | --server-max-concurrency, which also sizes the container’s memory |
ZSHOT_ | zshot-server | --server-queue-requests |
Example
Serve on port 8080 with a bearer token:
docker run --rm -p 8080:8080 \
-e ZSHOT_LICENSE="MY-ZSHOT-LICENSE-KEY" \
-e ZSHOT_SERVER_PORT=8080 \
-e ZSHOT_SERVER_TOKEN_AUTH="MY-TOKEN" \
scaleassembly/zshot-server