Cube.js can also run as a stateless Docker image with in-memory cache, because SingleStoreDB is built to handle massive real-time analytics workloads.

Cube Cloud is also available if you don’t want to manage the infrastructure yourself.

Deployment

The Docker image is available on Docker Hub and can be pulled with the following command:

docker pull rimdian/cubejs:latest

Env variables

All the following environment variables are required to run the Cube.js server.

PropertyDescriptionExample
NODE_ENVThe environment the server is running in.production
DB_PREFIXThe Rimdian database prefix.rmd_
CUBEJS_DEV_MODEWhether the server is running in development mode.false
CUBEJS_WEB_SOCKETSWhether the server should use websockets.false
DEBUG_LOGWhether the server should log debug messages.false
CUBEJS_DB_HOSTThe SingleStoreDB host.127.0.0.1
DB_PREFIXThe Rimdian database prefix.rmd_
CUBEJS_DB_PORTThe SingleStoreDB port.3306
CUBEJS_DB_USERThe SingleStoreDB username.username
CUBEJS_DB_PASSThe SingleStoreDB password.password
CUBEJS_DB_TYPEThe SingleStoreDB type.should be mysql
CUBEJS_DB_SSLWhether the SingleStoreDB connection should use SSL.true
CUBEJS_API_SECRETSame secret key as the Server CUBEJS_API_SECRET.my-very-complex-secret-key