mirror of
https://github.com/XRPLF/clio.git
synced 2025-12-06 17:27:58 +00:00
Clio official docker image
Clio is an XRP Ledger API server optimized for RPC calls over WebSocket or JSON-RPC. It stores validated historical ledger and transaction data in a space efficient format.
This image contains clio_server binary allowing users to run Clio easily.
Clio configuration file
Please note that while Clio requires a configuration file, this image doesn't include any default config.
Your configuration file should be mounted under the path /opt/clio/etc/config.json.
Clio repository provides an example of the configuration file.
Config file recommendations:
- Set
log.enable_consoletofalseif you want to avoid logs being written tostdout. - Set
log.directoryto/opt/clio/logto store logs in a volume.
Usage
The following command can be used to run Clio in docker (assuming server's port is 51233 in your config):
docker run -d -v <path to your config.json>:/opt/clio/etc/config.json -v <path to store logs>:/opt/clio/log -p 51233:51233 rippleci/clio