Skip to main content

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:
Then run:

Usage with docker run

First-Time Setup

Before running the gateway for the first time, you need to configure it:
  1. Run the setup wizard (interactive):
  2. Or set gateway.mode=local in configuration to skip setup validation:
For testing without configuration, add --allow-unconfigured to the command.

Security Notes

  • Never commit .env files containing real tokens to version control
  • Use Docker secrets or a secrets manager in production
  • The CROCBOT_GATEWAY_TOKEN should be a strong, unique value
  • Container runs as non-root node user for security