version: '3'
services:
  bitcoin:
    image: kylemanna/bitcoind
    container_name: bitcoind
    restart: always
    volumes:
      - "/var/lib/docker/volumes/bitcoin/_data:/bitcoin/.bitcoin"
    ports:
      - "18332:18332"
      - "18333:18333"
    environment:
      BITCOIN: "/var/lib/docker/volumes/bitcoin"
    command:
      -rpcallowip=0.0.0.0/0
      -rpcbind=0.0.0.0
      -rpcuser=user
      -rpcpassword=password
      -server=1
      -wallet=wallet.dat
      -disablewallet=0
volumes:
  bitcoin:
    driver: local
