services: nockchain: image: ghcr.io/lushdog/nockchain:latest network_mode: host privileged: true restart: unless-stopped volumes: - ./nockchain:/app/data - ./nockchain-wallet:/root/.nockapp/wallet environment: - MINING_PUBKEY=${MINING_PUBKEY:?please make sure to set your MINING_PUBKEY environment variable in the .env file} - NUM_THREADS=${NUM_THREADS:?please make sure to set your NUM_THREADS environment variable in the .env file} command: - "--npc-socket" - "nockchain.sock" - "--mining-pubkey" - "${MINING_PUBKEY}" - "--bind" - "/ip4/0.0.0.0/udp/3006/quic-v1" - "--mine" - "--num-threads" - "${NUM_THREADS}" logging: driver: "json-file" options: max-size: "10m" max-file: "3"