Documentation indicates which env vars are available to set for the gateway
https://tyk.io/docs/configure/gateway-env-variables/
| listen_port |
TYK_GW_LISTENPORT |
| secret |
TYK_GW_SECRET |
However entrypoint.sh overrides these variables
export TYK_GW_LISTENPORT="$TYKLISTENPORT"
export TYK_GW_SECRET="$TYKSECRET"
Either documentation should specify that if using standard docker installation, you need to set TYKLISTENPORT and TYKSECRET rather than TYK_GW_LISTENPORT and TYK_GW_SECRET.
Or
entrypoint.sh should only set TYK_GW_LISTENPORT and TYK_GW_SECRET if they are not already set.