Docker container for a Cronicle single-server master node
0.8.28
,latest
Dockerfile0.8.28-letsencrypt
,letsencrypt
Dockerfile.letsencrypt0.8.28-s3
,s3
Dockerfile.s3
Latest version of Cronicle server based upon nodejs Docker image.
Same as the latest
Docker image, but with support for Let's Encrypt
certificates. Which means that the Cronicle server can be used with SSL and a
Let's Encrypt certificate. If this is not needed, just use the tag latest
.
Same as the latest
Docker image, but with support for Amazon S3 storage. If
there is no need for S3, again, just go for latest
.
docker pull intelliops/cronicle:latest
docker run --name cronicle --hostname localhost -p 3012:3012 intelliops/cronicle:latest
Alternatively with persistent data and logs:
docker run --name cronicle \
-v /path-to-cronicle-storage/data:/opt/cronicle/data:rw \
-v /path-to-cronicle-storage/logs:/opt/cronicle/logs:rw \
--hostname localhost -p 3012:3012 intelliops/cronicle:latest
The web UI will be available at: http://localhost:3012
NOTE: please replace the hostname
localhost
, this is only for testing purposes! If you rename the hostname also consider setting the environmental variableCRONICLE_base_app_url
. e.gdocker run --name cronicle --hostname cronicle-host -p 3012:3012 -e CRONICLE_base_app_url='http://cronicle-host:3012' intelliops/cronicle:latest
Path | Description |
---|---|
/opt/cronicle/data | Volume for data |
/opt/cronicle/logs | Volume for logs |
/opt/cronicle/plugins | Volume for plugins |
Cronicle supports a special environment variable syntax, which can specify command-line options as well as override any configuration settings. The variable name syntax is CRONICLE_key
where key
is one of several command-line options (see table below) or a JSON configuration property path.
For overriding configuration properties by environment variable, you can specify any top-level JSON key from config.json
, or a path to a nested property using double-underscore (__
) as a path separator. For boolean properties, you can specify 1
for true and 0
for false. Here is an example of some of the possibilities available:
Environmental variable | Description | Default value |
---|---|---|
CRONICLE_base_app_url | A fully-qualified URL to Cronicle on your server, including the port if non-standard. This is used for self-referencing URLs. | http://localhost:3012 |
CRONICLE_WebServer__http_port | The HTTP port for the web UI of your Cronicle server. (Keep default value, unless you know what you are doing) | 3012 |
CRONICLE_WebServer__https_port | The SSL port for the web UI of your Cronicle server. (Keep default value, unless you know what you are doing) | 443 |
CRONICLE_web_socket_use_hostnames | Setting this parameter to 1 will force Cronicle's Web UI to connect to the back-end servers using their hostnames rather than IP addresses. This includes both AJAX API calls and Websocket streams. |
1 |
CRONICLE_web_socket_use_hostnames | Setting this parameter to 1 will force the Cronicle servers to connect to each other using hostnames rather than LAN IP addresses. |
1 |
CRONICLE_web_direct_connect | When this property is set to 0 , the Cronicle Web UI will connect to whatever hostname/port is on the URL. It is expected that this hostname/port will always resolve to your master server. This is useful for single server setups, situations when your users do not have direct access to your Cronicle servers via their IPs or hostnames, or if you are running behind some kind of reverse proxy. If you set this parameter to 1 , then the Cronicle web application will connect directly to your individual Cronicle servers. This is more for multi-server configurations, especially when running behind a load balancer with multiple backup servers. The Web UI must always connect to the master server, so if you have multiple backup servers, it needs a direct connection. |
0 |
CRONICLE_socket_io_transports | This allows you to customize the socket.io transports used to connect to the server for real-time updates. If you are trying to run Cronicle in an environment where WebSockets are not allowed (perhaps an ancient firewall or proxy), you can change this array to contain the polling transport first. Otherwise set it to ["websocket"] |
["polling", "websocket"] |
A custom configuration file can be provide in the following location:
/path-to-cronicle-storage/data/config.json.import
The file will get loaded the very first time Cronicle is started. If afterwards a forced reload of the custom configuration is needed remove the following file and restart the Docker container:
/path-to-cronicle-storage/data/.setup_done
The default credentials for the web interface are: admin
/ admin