Run a node with Docker Compose
Running in production12.5.8+

Run a node with Docker Compose

A mainnet or testnet full node from two files, docker-compose.yml and .env: start, check, upgrade, back up, and every setting explained.

Two files run a full node: docker-compose.yml says what to start, .env holds your values (the version, the folders, the ports). They are the settings our own public nodes run, minus their addresses and passwords.

Files #

FileWhat
docker-compose.ymlMainnet full node, and lotus-cli on demand
docker-compose.testnet.ymlThe same on the Napoleon testnet. It can run next to the mainnet node
env.exampleThe settings of both. Save it as .env

The same files are in the node's repository, in contrib/docker/compose/.

What you need #

  • A Linux machine with Docker Engine and its Compose plugin: docker compose version must answer (version 2). The images are built for linux/amd64.
  • Disk: a mainnet node with these settings uses about 34 GB at block 1,432,000, 31 GB of it block files. Plan 60 GB or more, on an SSD. See Low disk space.
  • Memory: 4 GB is enough with -dbcache=300.
  • The P2P port open to the internet (10605 on mainnet), so that other nodes can connect to yours. See Ports.

Start #

Shell
mkdir lotus && cd lotus
curl -fsSLO https://lotusia.network/docs/files/docker-compose.yml
curl -fsSL -o .env https://lotusia.network/docs/files/env.example

Open .env and check two things:

  • LOTUSD_TAG is the version to run: 12.5.8.
  • LOTUS_UID and LOTUS_GID are your user and group: id -u and id -g print them.

Create the data folder yourself, as that user, then start:

Shell
mkdir -p data
docker compose up -d
Warning

Create data before the first start. If it is missing, Docker creates it as root and the node, which runs as your user, cannot write to it: it stops at once with Unable to open settings file /data/settings.json.tmp for writing in the log. Fix it with sudo chown -R "$(id -u):$(id -g)" data.

A new node downloads and checks the whole chain first. That takes hours.

Check it #

Shell
docker compose ps                      # STATUS: Up ... (healthy)
docker compose logs -f --tail 100 lotusd
docker compose run --rm cli getblockchaininfo
curl -s http://127.0.0.1:10604/api/v1/health
  • docker compose ps shows healthy once the node answers on its web port. It shows starting while the chain loads, for up to 15 minutes.
  • In getblockchaininfo, blocks climbs to headers during the first sync; verificationprogress is above 0.999 on a synced node.
  • /api/v1/health answers "status":"syncing" during the first sync and "status":"ok" afterwards. Its subversion is the version that runs.
  • curl -s http://127.0.0.1:10604/api/v1/chain/sync gives the height, the headers and an estimate of the time left.

The dashboard (explorer, network, Social pages) is at http://127.0.0.1:10604/dashboard on the machine itself. The port listens on 127.0.0.1 only. From your own computer, open an SSH tunnel and browse the same address:

Shell
ssh -N -L 10604:127.0.0.1:10604 you@your-server

cli is lotus-cli in its own image, on the node's network and data folder; it logs in with the cookie file the node writes there. Any command works: docker compose run --rm cli getnetworkinfo, docker compose run --rm cli getpeerinfo. See JSON-RPC.

Upgrade #

  1. Read the notes of the new release, and of every release between yours and it. See Upgrade.
  2. In .env, set LOTUSD_TAG to the new version.
  3. Pull, then recreate the container:
Shell
docker compose pull
docker compose up -d
  1. Check that the new version runs:
Shell
docker compose images lotusd                     # TAG: the new version
docker compose exec lotusd lotusd -version       # Lotus version v<new version>-...
curl -s http://127.0.0.1:10604/api/v1/health     # "subversion":"/lotusd:<new version>(EB32.0)/"

The data folder stays as it is. up -d stops the old container first; the node writes its state to disk then, which can take a few minutes (stop_grace_period: 900s).

Warning

Pin a version in LOTUSD_TAG and do not use latest. A moving tag is resolved against the images already on the machine: with an old latest in the local cache, up -d can restart the node on an old version. The compose file sets pull_policy: always against that, but check the version after every upgrade.

Napoleon upgrade

Every node must run 12.5.8 or later before the Napoleon activation (21 December 2026, 20:50 UTC). Versions before 12.5.8 do not follow the chain after it. See Napoleon.

To go back, set the previous tag and run the same commands. That is not always possible once a newer version has written to the data folder: the release notes say when.

Ports #

PortWhatOpen it?
10605/tcp (testnet 20605)P2P, and P2P over WebSocketYes, from the internet: in the firewall, and as a port forward on a home router
10604/tcp (testnet 20604)JSON-RPC, REST API /api/v1, dashboardNo. It listens on 127.0.0.1 only. To publish it, put a reverse proxy in front: see Security
80/tcpCertificate check, only with -p2pwsacmeOnly with that option: see Secure WebSocket

The container uses the host's network (network_mode: host), so there is no ports: section: the node listens on the host directly. On a server with ufw:

Shell
sudo ufw allow 10605/tcp

Data folder and backups #

Everything the node keeps is in data/ (LOTUS_DATA_DIR): block files (blocks/), the chain state (chainstate/), the indexes (indexes/), the module databases (modules/), and node.sqlite, which holds the node's identity key and its certificates.

  • The chain can be downloaded again; the identity key and the certificates cannot. Back up node.sqlite, or the whole folder.
  • Copy the folder while the node is stopped: docker compose stop, copy, docker compose start.
  • This node has no wallet (-disablewallet=1). Keep your coins in Lotus Desktop or the web wallet.
  • To move the node to another machine, stop it, copy the folder with the two files, and start it there.

Low disk space #

Block files are almost all of the space (31 GB of 34 GB on our nodes). To use less:

  • Put the block files on another disk: mount it in the container (for example - /mnt/big/lotus-blocks:/blocks under volumes:) and add -blocksdir=/blocks to command:.
  • Or run a thin node, which keeps only recent blocks. That is another kind of node: it serves no explorer, no modules, no proofs.
  • -prune=<MiB> deletes old block files, but refuses to start with -blockfilterindex, ignores -proofserver, and a module turned on later cannot catch up. Drop those lines first. Going back to a full node needs a new download.

When the disk is full the node stops by itself with Disk space is too low! in the log. Free space, then start it again.

Testnet #

docker-compose.testnet.yml runs a node on the Napoleon testnet: Napoleon active from block 1, ports 20605 (P2P) and 20604 (web). It reads the same .env, with its own folder and ports, and can run next to the mainnet node:

Shell
curl -fsSLO https://lotusia.network/docs/files/docker-compose.testnet.yml
mkdir -p data-testnet
docker compose -f docker-compose.testnet.yml up -d
docker compose -f docker-compose.testnet.yml run --rm cli getblockchaininfo

It differs from the mainnet file in these lines only:

SettingWhy
-napoleontestnetThe test network. The node keeps its files in data-testnet/napoleontest
-port=${TESTNET_P2P_PORT}, -rpcbind=127.0.0.1:${TESTNET_RPC_PORT}20605 and 20604 by default, so both nodes fit on one host
-addnode=51.91.36.126:20605This network has no DNS seed, so the node needs a first peer. -forcednsseed is left out

Testnet coins have no value. See Napoleon.

Every setting #

The meaning and the defaults come from lotusd -help (in the image: docker run --rm ghcr.io/lotusdevorg/lotusd:12.5.8 -help).

Compose #

KeyOur valueWhat it does, and when to change it
imageghcr.io/lotusdevorg/lotusd:${LOTUSD_TAG}The node image of one release. Without LOTUSD_TAG in .env, Compose refuses to start. Change the tag to upgrade
pull_policyalwaysAsk the registry at every up (default: missing, which uses any local copy of the tag). Set missing on a machine that must start without network
restartunless-stoppedStart the node again after a crash or a reboot, unless you stopped it yourself
stop_grace_period900sTime the node has to write its state on stop before Docker kills it (default: 10 s, far too short: a killed node may have to rebuild its state). Keep it
network_modehostThe container shares the host's network: the node listens on the host directly, IPv6 included, and -rpcbind=127.0.0.1 means the host's localhost, so the web port is reachable from this machine only. With Docker's default bridge network you need ports: instead: see below
portsnoneNot used with network_mode: host. With a bridge network you would publish "10605:10605" and "127.0.0.1:10604:10604", and the node would need -rpcbind=0.0.0.0 -rpcallowip=0.0.0.0/0, as in Run a node in Docker
user${LOTUS_UID}:${LOTUS_GID}The node runs as your user, not root, and its files belong to you. The image's default is root
ulimits.nofile65535Open files allowed: each peer and each database takes some
volumes${LOTUS_DATA_DIR}:/dataThe data folder on the host, seen as /data in the container
loggingjson-file, 3 files of 50 MBWhat docker compose logs shows, capped. Without it Docker keeps the whole log
healthcheckGET /api/v1/health every 60 sMarks the container healthy when the node answers 200. The image has no curl, so bash opens the socket. start_period: 15m covers the loading of the chain, which answers 503
commandthe options belowReplaces the image's default arguments (-printtoconsole -datadir=/root/.lotus)
cli service, profiles: ["cli"]lotus-cli image, same tagNot started by up; docker compose run --rm cli <command> runs one command against the node. It mounts the data folder read-only to read the cookie file

.env #

VariableDefaultWhat
LOTUSD_TAGnone (required)The release of both images
LOTUS_UID, LOTUS_GID1000Owner of the data folders: id -u, id -g
LOTUS_DATA_DIR./dataMainnet data folder, relative to the compose file or absolute
LOTUS_P2P_PORT, LOTUS_RPC_PORT10605, 10604Mainnet ports. Change them only if another program uses them: other nodes look for 10605
TESTNET_DATA_DIR, TESTNET_P2P_PORT, TESTNET_RPC_PORT./data-testnet, 20605, 20604The same for the testnet file
RPCAUTHemptyOptional JSON-RPC login: see RPC login
EXTERNAL_IP, ACME_NAMEnot setOnly for the lines you uncomment: -externalip, -bind, -p2pwsacme

Data and logs #

OptionOur valueDefaultWhat it does, and when to change it
-datadir/data/root/.lotus in the imageWhere the node keeps everything: the volume above
-printtoconsoleon1 when not run as a daemonLog to the container's output, which docker compose logs reads. The node also writes debug.log in the data folder; add -debuglogfile=0 to stop that
-shrinkdebugfile11 without -debugCut debug.log down to its end at each start, so it does not grow for ever
-asyncindex010: the explorer indexes and the chain modules are written inside block connection, so their REST routes are never behind the tip. 1: written by a background thread after each block, which can be a few blocks behind (indexer.index_height in /api/v1/chain). The contents are the same
-disablewallet10 (wallet loaded)No wallet and no wallet RPC calls. Remove it only if this node must hold a wallet; then back it up (see Upgrade)

Chain modules #

-modules=empp,rank,pokr,blob,slp,alp (default: all). Each module reads one kind of on-chain data and serves it under /api/v1. A module left out keeps no database and its routes answer 503 module_disabled. A module turned on later catches up from the block where it stopped, or from the first block, which needs the block files.

ModuleWhat it indexes
emppThe multi-push OP_RETURN envelope the other protocols are carried in. Added by itself when rank, pokr, blob or slp is on. See eMPP
rankRANK: burn-weighted votes on social profiles and posts, shown by the Social pages. See RANK
pokrPoker league events. See POKR
blobFiles stored on chain in chunks. See BLOB
slpSLP v1 tokens. See SLP
alpALP tokens. See ALP
pool (left out)The mining pool's records. Only for a node that runs a pool: see Pool
contract (left out)Taproot contracts; it also needs -contractindex=1

Network #

OptionOur valueDefaultWhat it does, and when to change it
-parentp2pallnoneFollow the parent chains (BTC, XEC, BCH, LTC) over their own P2P networks, headers only; the headers go into the blocks this node builds (merged mining). Not consensus. A node that never builds blocks can drop it and save those connections. See Merged mining
-listen11 (unless -proxy or -connect)Accept connections from other nodes
-port${LOTUS_P2P_PORT} (10605)10605; testnet 20605The P2P port. The same port also takes P2P over WebSocket
-bindnot set (commented out)every addressListen on one address only. Set it on a server with several addresses
-externalipnot set (commented out)noneYour public address, announced to peers. Set it on a server with a fixed public address, with -discover=0
-discovernot set (commented out)1 when listening and no -externalipFind your own addresses and announce them. Our servers set -externalip and -discover=0; at home, keep the default
-upnp00Do not ask the router to open the port by UPnP. Open it yourself
-maxconnections1284096At most 128 peers: enough to help the network, light on a small server. Raise it on a large one
-forcednsseed10Ask the DNS seed (seed.givelotus.org) for addresses at every start, not only when the node knows too few
-peertimeout30060Seconds a peer may stay silent before it is dropped. A longer value keeps peers on slow or busy links
-addnodenone on mainnetnoneA peer to connect to and keep. Mainnet finds its peers through the DNS seed; the testnet file names one public testnet node

Resources #

OptionOur valueDefaultWhat it does, and when to change it
-dbcache3001024Database cache in MiB. 300 fits a 4 GB machine. More (1024 to 4096) syncs faster on a machine with memory to spare
-rpcthreads816Threads answering JSON-RPC, REST and the dashboard. Raise it (16 or more) on a node that serves an explorer or many clients

Serving light clients #

OptionOur valueDefaultWhat it does, and when to change it
-proofserver10Answer the proof requests of thin nodes (Lotus Desktop, browser nodes). Ignored on a pruned node. See Thin mode
-blockfilterindexbasic0Build an index of compact block filters (in indexes/, under 300 MB on mainnet today). Cannot be used with -prune
-peerblockfilters10Serve those filters to peers (BIP 157). Needs -blockfilterindex

They cost some disk and CPU, and help wallets and nodes that do not keep the whole chain. Drop them on a small machine.

RPC and security #

OptionOur valueDefaultWhat it does, and when to change it
-rpcbind127.0.0.1:${LOTUS_RPC_PORT}127.0.0.1 and ::1Listen for JSON-RPC, REST and the dashboard on this address and port. Only on this machine. Never 0.0.0.0 with network_mode: host
-rpcallowip127.0.0.1/32none (localhost only)Who may connect. Needed for -rpcbind to apply. A reverse proxy on the same host connects from 127.0.0.1
-rpcauth${RPCAUTH}, empty by defaultnoneA user name and a salted hash of its password. Empty: no login but the cookie

lotus-cli never needs -rpcauth: it reads the cookie file data/.cookie, which the node writes at each start.

RPC login #

Another program (a script, an explorer, a pool) that calls JSON-RPC needs a login. Generate one with rpcauth.py, from the node's repository (Python 3):

Shell
curl -fsSLO https://raw.githubusercontent.com/LotusDevOrg/lotusd/v12.5.8/share/rpcauth/rpcauth.py
python3 rpcauth.py alice

It prints a line rpcauth=alice:<salt>$<hash> and the password. Put the part after rpcauth= in .env, between single quotes, and keep the password for the program:

Config
RPCAUTH='alice:0f3c...$7d2a...'
Warning

Keep the single quotes. Without them Compose reads $7d2a... as a variable, the hash is cut, and the login fails.

Without Python, the same with openssl:

Shell
salt=$(openssl rand -hex 16); pass=$(openssl rand -hex 32)
hash=$(printf %s "$pass" | openssl dgst -sha256 -hmac "$salt" | sed 's/^.* //')
echo "RPCAUTH='alice:$salt\$$hash'"; echo "password: $pass"

Then docker compose up -d and test it:

Shell
curl -s -u alice:<password> -H 'content-type: text/plain' \
  --data-binary '{"jsonrpc":"1.0","id":1,"method":"getblockcount","params":[]}' \
  http://127.0.0.1:10604/

A wrong password answers 401. See Security for what the REST API serves without a login.

Secure WebSocket #

Web pages served over HTTPS reach a node only through wss:// with a trusted certificate. The node can get one from Let's Encrypt and renew it by itself. These lines are commented out in the file:

OptionDefaultWhat it does
-p2pwsacme=${ACME_NAME}noneGet and renew a certificate for this DNS name, then answer wss:// on the P2P port. The name must point at this host, not through a proxy or a CDN
-p2pwsacmeagree=10Accept the certificate authority's terms of service. Required with -p2pwsacme
-p2pwsacmeport80Port of the small listener that answers the certificate check, open only while a certificate is requested. The authority always connects to port 80: another value needs a web server on port 80 that forwards /.well-known/acme-challenge/ to it (our servers use 10680)
-p2pwsacmebindevery addressAddress of that listener; 127.0.0.1 when a local web server forwards to it

Set ACME_NAME in .env, uncomment the first two lines, open port 80, and run docker compose up -d. Keep the data folder: the certificate is in node.sqlite. See Run a node in Docker.

The files in full #

docker-compose.yml:

YAML
# Lotus full node (mainnet) with Docker Compose.
#
# Guide, with every setting explained:
#   https://lotusia.network/docs/docker-compose/
#   (the same page is in the node: Developers > Documentation > Docker Compose)
#
# Quick start, in an empty folder holding this file:
#   curl -fsSL -o .env https://lotusia.network/docs/files/env.example
#   mkdir -p data          # before the first start, as the user that runs the node
#   docker compose up -d
#   docker compose logs -f lotusd
#   docker compose run --rm cli getblockchaininfo
#
# Values written ${LIKE_THIS} come from the .env file next to this one.

name: lotus-mainnet

services:
  lotusd:
    # The node image of one release. The version is set in .env (LOTUSD_TAG).
    # To upgrade: change LOTUSD_TAG, then `docker compose pull` and
    # `docker compose up -d`.
    image: ghcr.io/lotusdevorg/lotusd:${LOTUSD_TAG:?set LOTUSD_TAG in .env}
    # Ask the registry at every `up`, so a tag is never served from an old
    # copy left in the local image cache.
    pull_policy: always
    restart: unless-stopped
    # The node writes its state to disk when it stops. Give it the time.
    stop_grace_period: 900s
    # The container uses the host's network: the node listens on the host
    # directly (IPv6 included), and the RPC/REST port below listens on the
    # host's 127.0.0.1 only. No `ports:` section is needed.
    network_mode: host
    # Run as your own user, so the files in the data folder are yours.
    user: "${LOTUS_UID:-1000}:${LOTUS_GID:-1000}"
    ulimits:
      nofile: { soft: 65535, hard: 65535 }
    volumes:
      # Chain data: blocks, chain state, indexes, module databases, the
      # node's keys and certificates. Back this folder up; never delete it to
      # "fix" something.
      - ${LOTUS_DATA_DIR:-./data}:/data
    logging:
      driver: json-file
      options: { max-size: "50m", max-file: "3" }
    healthcheck:
      # The image has bash but no curl: ask /api/v1/health over a raw socket.
      # 200 = the node answers (status "ok" when synced, "syncing" during the
      # first sync); 503 while the chain is still loading.
      test: ["CMD", "bash", "-c", "exec 3<>/dev/tcp/127.0.0.1/${LOTUS_RPC_PORT:-10604} && printf 'GET /api/v1/health HTTP/1.0\\r\\nHost: localhost\\r\\n\\r\\n' >&3 && head -n 1 <&3 | grep -q ' 200 '"]
      interval: 60s
      timeout: 10s
      retries: 5
      start_period: 15m
    command:
      # ── Data and logs ──────────────────────────────────────────────
      - -datadir=/data
      - -printtoconsole
      - -shrinkdebugfile=1
      # Indexes and modules written inside block connection: their REST
      # routes never lag behind the tip. 1 (the default) writes them on a
      # background thread.
      - -asyncindex=0
      # No wallet in this node (use Lotus Desktop or the web wallet).
      - -disablewallet=1

      # ── Chain modules ─────────────────────────────────────────────
      # empp: multi-push OP_RETURN envelope; rank: RANK votes (Social pages);
      # pokr: poker league events; blob: files stored on chain;
      # slp, alp: tokens. Left out: pool (mining pool) and contract.
      - -modules=empp,rank,pokr,blob,slp,alp

      # ── Network ───────────────────────────────────────────────────
      # Follow the parent chains (BTC, XEC, BCH, LTC) over their own P2P
      # networks, headers only. Used by the blocks this node builds.
      - -parentp2p=all
      - -listen=1
      - -port=${LOTUS_P2P_PORT:-10605}
      # A public server with a fixed address: uncomment both lines and set
      # EXTERNAL_IP in .env.
      # - -externalip=${EXTERNAL_IP}
      # - -discover=0
      # Listen on one address only (by default: every address of the host).
      # - -bind=${EXTERNAL_IP}:${LOTUS_P2P_PORT:-10605}
      - -upnp=0
      - -maxconnections=128
      # Ask the DNS seed (seed.givelotus.org) for peers at every start.
      - -forcednsseed=1
      - -peertimeout=300

      # ── Resources ─────────────────────────────────────────────────
      # Database cache in MiB. 300 fits a 4 GB server; raise it (1024 to
      # 4096) to sync faster on a bigger machine.
      - -dbcache=300
      # HTTP worker threads (JSON-RPC, REST API, dashboard).
      - -rpcthreads=8

      # ── Serving light clients ─────────────────────────────────────
      # Proofs for thin nodes (Lotus Desktop, browser nodes).
      - -proofserver=1
      # Compact block filters (BIP 157), built and served to peers.
      - -blockfilterindex=basic
      - -peerblockfilters=1

      # ── Secure WebSocket (wss://) on the P2P port ─────────────────
      # Needs a DNS name that points at this host (not proxied) and port 80
      # open while a certificate is requested. Set ACME_NAME in .env, then
      # uncomment:
      # - -p2pwsacme=${ACME_NAME}
      # - -p2pwsacmeagree=1
      # When a web server already uses port 80, let it forward
      # /.well-known/acme-challenge/ to this listener instead:
      # - -p2pwsacmeport=10680
      # - -p2pwsacmebind=127.0.0.1

      # ── RPC, REST API and dashboard: this machine only ────────────
      - -rpcbind=127.0.0.1:${LOTUS_RPC_PORT:-10604}
      - -rpcallowip=127.0.0.1/32
      # Optional login for other programs (empty: none; the cli service
      # below uses the cookie file). Generate it as the guide says.
      - -rpcauth=${RPCAUTH:-}

  # lotus-cli in its own image, on the node's network and data folder (it
  # reads the cookie file there). Not started by `up`; run it with:
  #   docker compose run --rm cli getblockchaininfo
  cli:
    image: ghcr.io/lotusdevorg/lotus-cli:${LOTUSD_TAG:?set LOTUSD_TAG in .env}
    profiles: ["cli"]
    network_mode: host
    user: "${LOTUS_UID:-1000}:${LOTUS_GID:-1000}"
    volumes:
      - ${LOTUS_DATA_DIR:-./data}:/data:ro
    entrypoint: ["lotus-cli", "-datadir=/data", "-rpcport=${LOTUS_RPC_PORT:-10604}"]

.env (from env.example):

Config
# Settings of docker-compose.yml and docker-compose.testnet.yml.
# Save this file as .env in the folder that holds them.
# Guide: https://lotusia.network/docs/docker-compose/

# The release to run: the image tag of ghcr.io/lotusdevorg/lotusd and
# lotus-cli. To upgrade, change it, then:
#   docker compose pull && docker compose up -d
LOTUSD_TAG=12.5.8

# The user and group that own the data folders (`id -u` and `id -g`).
LOTUS_UID=1000
LOTUS_GID=1000

# Mainnet: data folder (relative to this file, or absolute) and ports.
LOTUS_DATA_DIR=./data
LOTUS_P2P_PORT=10605
LOTUS_RPC_PORT=10604

# Napoleon testnet: data folder and ports.
TESTNET_DATA_DIR=./data-testnet
TESTNET_P2P_PORT=20605
TESTNET_RPC_PORT=20604

# Optional login for programs that call the JSON-RPC interface. Empty: none
# (lotus-cli uses the cookie file of the data folder). Keep the single
# quotes: the value contains a $ that Compose must not read.
#   RPCAUTH='alice:0f3c...$7d2a...'
RPCAUTH=

# Only with the lines you uncomment in docker-compose.yml:
# EXTERNAL_IP=203.0.113.10
# ACME_NAME=node.example.org

The testnet file is docker-compose.testnet.yml.

When it does not work #

What you seeWhy, and what to do
required variable LOTUSD_TAG is missingNo .env next to the compose file, or no LOTUSD_TAG in it
The container restarts at once; the log says Unable to open settings file /data/settings.json.tmp for writingThe folder belongs to root or to another user: sudo chown -R "$(id -u):$(id -g)" data, and check LOTUS_UID, LOTUS_GID
unhealthy, and the log is still loading blocksThe chain takes long to load on a slow disk; the check counts after 15 minutes. Wait, or raise start_period
curl: (7) Failed to connect to 127.0.0.1 port 10604The node is still starting, or another port is set in LOTUS_RPC_PORT
No incoming peers (getnetworkinfo: connections_in stays 0)Port 10605 is closed in the firewall or the router
docker compose up -d fails on pullThe registry cannot be reached. Retry, or set pull_policy: missing if the image is already on the machine
A JSON-RPC program gets 401Wrong password, or RPCAUTH without single quotes in .env
Source share/www/docs/docker-compose.md in the lotusd repository
Checked against contrib/docker/compose/docker-compose.yml contrib/docker/compose/docker-compose.testnet.yml contrib/docker/compose/env.example dockerfiles/Dockerfile.lotusd dockerfiles/Dockerfile.lotus-cli share/rpcauth/rpcauth.py src/init.cpp src/httprpc.cpp src/chainparamsbase.cpp