Skip to content

Install from docker

ImplOfAnImpl edited this page Jan 21, 2025 · 5 revisions

This guide will cover how to use Docker to deploy and run the Mintlayer node-daemon and wallet-cli.

Prerequisites

You need to have Docker installed on your system. For Docker installation guide, please visit official Docker documentation.

Mintlayer Deployment Using Docker Compose

Below is a simplified docker-compose.yml configuration to deploy the node-daemon and wallet-cli services:

x-common-env: &common-env
  RUST_LOG: "info"
  ML_USER_ID: "1000"
  ML_GROUP_ID: "1000"

services:
  node-daemon:
    image: "mintlayer/node-daemon:latest"
    pull_policy: always
    command: "node-daemon mainnet"
    environment:
      <<: *common-env
      ML_MAINNET_NODE_RPC_BIND_ADDRESS: "0.0.0.0:3030"
    ports:
      - "3030:3030"
    volumes:
      - "./mintlayer-data:/home/mintlayer"

  wallet-cli:
    image: "mintlayer/wallet-cli:latest"
    pull_policy: always
    command: "wallet-cli mainnet"
    depends_on:
      - "node-daemon"
    environment:
      <<: *common-env
      ML_MAINNET_WALLET_NODE_RPC_ADDRESS: node-daemon:3030
    volumes:
      - "./mintlayer-data:/home/mintlayer"
    profiles:
      - "wallet_cli"

Running the Services

  1. Save the above content as docker-compose.yml in your working directory.
  2. Start the services:
    docker compose up -d

Accessing the Wallet-CLI

To enter the Wallet-CLI container and interact with it in an interactive session:

docker compose run --rm wallet-cli

This command will open an interactive shell for the Wallet-CLI inside the container. Once inside, you can execute Wallet-CLI commands interactively to manage your wallet.

Note

  • The ./mintlayer-data volume will store persistent data for all services. Ensure the directory exists and is writable by Docker.
Clone this wiki locally