Docker Environment Variables
This document describes the environment variables used when running crocbot in Docker.Required Variables
Optional Variables
Usage with docker-compose
Create a.env file in the same directory as docker-compose.yml:
Usage with docker run
First-Time Setup
Before running the gateway for the first time, you need to configure it:-
Run the setup wizard (interactive):
-
Or set
gateway.mode=localin configuration to skip setup validation:
--allow-unconfigured to the command.
Security Notes
- Never commit
.envfiles containing real tokens to version control - Use Docker secrets or a secrets manager in production
- The
CROCBOT_GATEWAY_TOKENshould be a strong, unique value - Container runs as non-root
nodeuser for security
