docker-compose.yml 822 B

12345678910111213141516171819202122232425262728
  1. services:
  2. nockchain:
  3. image: ghcr.io/lushdog/nockchain:latest
  4. network_mode: host
  5. privileged: true
  6. restart: unless-stopped
  7. volumes:
  8. - ./nockchain:/app/data
  9. - ./nockchain-wallet:/root/.nockapp/wallet
  10. environment:
  11. - MINING_PUBKEY=${MINING_PUBKEY:?please make sure to set your MINING_PUBKEY environment variable in the .env file}
  12. - NUM_THREADS=${NUM_THREADS:?please make sure to set your NUM_THREADS environment variable in the .env file}
  13. command:
  14. - "--npc-socket"
  15. - "nockchain.sock"
  16. - "--mining-pubkey"
  17. - "${MINING_PUBKEY}"
  18. - "--bind"
  19. - "/ip4/0.0.0.0/udp/3006/quic-v1"
  20. - "--mine"
  21. - "--num-threads"
  22. - "${NUM_THREADS}"
  23. logging:
  24. driver: "json-file"
  25. options:
  26. max-size: "10m"
  27. max-file: "3"