This Docker image contains scripts and configs to run Waves Pairs Daemon. The image is focused on work with pairs precalculation.
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/pairs-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'] |
PAIRS_UPDATE_INTERVAL | 2500 | NO | Minimum daemon update time. If time is exceeded, the next iteration starts immediately |
PAIRS_UPDATE_TIMEOUT | 20000 | NO | If the update time is exceeded, the daemon terminates |
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
109.3 MB
Last updated
over 6 years ago
docker pull wavesplatform/data-service-pairs