Cyclotron is a browser-based platform built by Expedia for constructing dashboards. Build on and requiring MongoDB and Node.js, It provides standard boilerplate and plumbing, allowing non-programmers to easily create and edit dashboards using customizable components. It has a built-in dashboard editor, and hosts the dashboards directly.
In this repository
The Dockefile builds from node:lts then nginx:stable-alpine for the cyclotron-site and node:lts-apline for the cyclotron-svc.
Run the entire stack using docker-compose.
git clone https://github.com/fjudith/docker-cyclotron
cd deploy/docker-compose
docker-compose up -d
The following tables describe the environment variables supported by the cyclotron-site and cyclotron-svc containers.
| Variable | Description | Default |
|---|---|---|
| MONGO_URL | Connection string to access the MongoDB database | mongo://mongodb:27017/cyclotron |
| LISTEN_PORT | Port to run the Cyclotron Service on | 8087 |
| BASE_PATH | Base path this server is hosted at; used by Swagger docs | / |
| WEB_SERVER | URL for website using this service; Used for exporting Dashboards as PDFs via CasperJS | http://cyclotron-site |
| ENCRYPTION_KEY | Key for encrypting/decrypting strings on the /crypto endpoint | "" |
| LOAD_EXAMPLES_DASHBOARDS | If enabled, loads example Dashboards from /examples folder into the database | True |
| ANALYTICS_ENABLE | Enable or disable analytic data collection | False |
| ANALYTICS_ENGINE | Possible values: mongo, elasticsearch | mongo |
| ELASTICSEARCH_HOST | Elasticsearch server hostname and port (use comma "," for multiple server) | elasticsearch:9200 |
| ELASTICSEARCH_INDEX_PREFIX | Prefix of Cyclotron indices | cyclotron |
| ELASTICSEARCH_PAGE_VIEWS_INDEX_STRATEGY | Configure how frequently to rotate to new page views indicies | monthly |
| ELASTICSEARCH_DATASOURCES_INDEX_STRATEGY | Configure how frequently to rotate to new datasources indicies | monthly |
| ELASTICSEARCH_EVENTS_INDEX_STRATEGY | Configure how frequently to rotate to new event indicies | yearly |
| AUTH_ENABLE | Enable or disable authentication | False |
| AUTH_ADMINS | List of LDAP distinguished names of Cyclotron Admin users | "" |
| LDAP_URL | Connection string to access the LDAP authentication server | ldap://ldap.example.com:389 |
| LDAP_SEARCH_BASE | Directory location where user search should being | ou=users, dc=example, dc=com |
| LDAP_SEARCH_FILTER | Filter allowing to match appropriate users | (cn={{username}}) |
| LDAP_ADMIN_DN | LDAP distinguished name of the user to process the directory queries; not the username; | cn=cyclotron, ou=apps, dc=example, dc=com |
| LDAP_ADMIN_PASSWORD | Password of the user to process the directory queries | "" |
| LDAP_SEARCH_CATEGORIES | List of LDAP paths to search for auto-complete | "" |
| REQUEST_LIMIT | Limits the maximum size request that can be processed. May need to be increased to save very large Dashboards. | 5mb |
| TRUSTED_CA | List of addistional CAs to trust when making HTTP proxy requests | "" |
docker pull fjudith/cyclotron-site:latest