This Docker image contains scripts and configs to run Data Service Candles Daemon. The image adds functionality to Data Service to calculate and update DEX candles inside the Postgres database (see Requirements).
Container downloads source code and configuration files from the repository and runs it.
The simplest way to run a container:
docker run -e PGHOST=*** -e PGDATABASE=*** -e PGUSER=*** -e PGPASSWORD=*** -it wavesplatform/candles-daemon
You can run container with environment variables:
| Env variable | Default | Required | Description |
|---|---|---|---|
PGHOST | YES | Postgres host address | |
PGPORT | 5432 | NO | Postgres port |
PGDATABASE | YES | Postgres database name | |
PGUSER | YES | Postgres user name | |
PGPASSWORD | YES | Postgres password | |
PGPOOLSIZE | 20 | NO | Postgres pool size |
LOG_LEVEL | info | NO | Log level ['info','warn','error'] |
CANDLES_UPDATE_INTERVAL_ | 2500 | NO | Minimum daemon update time in ms. If time is exceeded, the next iteration starts immediately |
CANDLES_UPDATE_TIMEOUT | 20000 | NO | If the update time in ms is exceeded, the daemon terminates |
RECALCULATE_ALL_CANDLES_ON_START | true | NO | Truncate all data from candles table and recalculate all candles |
PGPOOLSIZE is used by the pg-pool library to determine Postgres connection pool size per NodeJS process instance. A good value depends on your server and db configuration and can be found empirically. You can leave it at the default value to start with.
Content type
Image
Digest
Size
108.3 MB
Last updated
over 6 years ago
docker pull wavesplatform/data-service-candles