Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/belsander/docker-cronicle
Docker container for a Cronicle single-server master node
https://github.com/belsander/docker-cronicle
Last synced: 16 days ago
JSON representation
Docker container for a Cronicle single-server master node
- Host: GitHub
- URL: https://github.com/belsander/docker-cronicle
- Owner: belsander
- License: mit
- Created: 2018-04-27T15:20:54.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-10-13T05:00:08.000Z (about 3 years ago)
- Last Synced: 2024-08-01T00:41:52.009Z (3 months ago)
- Language: Dockerfile
- Size: 37.1 KB
- Stars: 33
- Watchers: 3
- Forks: 32
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# docker-cronicle
[![Build status](https://img.shields.io/docker/build/intelliops/cronicle.svg)](https://hub.docker.com/r/intelliops/cronicle) [![Build status](https://img.shields.io/travis/belsander/docker-cronicle/master.svg)](https://travis-ci.org/belsander/docker-cronicle)Docker container for a Cronicle single-server master node
# Supported tags
* `0.8.28`, `latest` [Dockerfile](https://raw.githubusercontent.com/belsander/docker-cronicle/master/Dockerfile)
* `0.8.28-letsencrypt`, `letsencrypt` [Dockerfile.letsencrypt](https://raw.githubusercontent.com/belsander/docker-cronicle/master/Dockerfile.letsencrypt)
* `0.8.28-s3`, `s3` [Dockerfile.s3](https://raw.githubusercontent.com/belsander/docker-cronicle/master/Dockerfile.s3)## latest
Latest version of Cronicle server based upon nodejs Docker image.## letsencrypt
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`.## s3
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`.# Usage
## Install
```sh
docker pull intelliops/cronicle:latest
```## Running
```sh
docker run --name cronicle --hostname localhost -p 3012:3012 intelliops/cronicle:latest
```Alternatively with persistent data and logs:
```sh
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
> variable `CRONICLE_base_app_url`.
> e.g `docker run --name cronicle --hostname cronicle-host -p 3012:3012 -e CRONICLE_base_app_url='http://cronicle-host:3012' intelliops/cronicle:latest`## Volumes
Cronicle process runs under the `cronicle` user with `ID 1001` and `GUID `1001`. If you are using Docker bind mounts set permissions accordingly.| Path | Description |
|--------|--------|
| /opt/cronicle/data | Volume for data |
| /opt/cronicle/logs | Volume for logs |
| /opt/cronicle/plugins | Volume for plugins |## Configuration
### Environmental variables
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_server_comm_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"]### Custom configuration file
A custom configuration file can be provide in the following location:
```sh
/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:
```sh
/path-to-cronicle-storage/data/.setup_done
```## Web UI credentials
The default credentials for the web interface are: `admin` / `admin`# Reference
https://github.com/jhuckaby/Cronicle