<commit_before>version: '2'
services:

    # btc is an image of bitcoin node which used as base image for btcd and
    # btccli. The environment variables default values determined on stage of
    # container start within starting script.
    btc:
      image: btcd
      build:
        context: btcd/
      volumes:
            - shared:/rpc
      environment:
        - RPCUSER
        - RPCPASS

    btcd:
        extends: btc
        container_name: btcd
        environment:
          - DEBUG
          - MINING_ADDRESS
        entrypoint: ["./start-btcd.sh"]

    btcctl:
        extends: btc
        container_name: btcctl
        links:
            - "btcd:rpcserver"
        entrypoint: ["./start-btcctl.sh"]

    lnd:
        image: lnd
        build:
          context: ../
          dockerfile: docker/lnd/Dockerfile
        environment:
          - RPCUSER
          - RPCPASS
          - DEBUG
        volumes:
            - shared:/rpc
        entrypoint: ["./start-lnd.sh"]

    alice:
      extends: lnd
      container_name: alice
      links:
          - "btcd:btcd"

    bob:
      extends: lnd
      container_name: bob
      links:
          - "btcd:btcd"

volumes:
  # shared volume is need to store the btcd rpc certificates and us it within
  # btcctl and lnd containers.
  shared:
    driver: local
<commit_msg>docker: make blockchain persistant<commit_after>version: '2'
services:

    # btc is an image of bitcoin node which used as base image for btcd and
    # btccli. The environment variables default values determined on stage of
    # container start within starting script.
    btc:
      image: btcd
      build:
        context: btcd/
      volumes:
            - shared:/rpc
            - blockchain:/data
      environment:
        - RPCUSER
        - RPCPASS

    btcd:
        extends: btc
        container_name: btcd
        environment:
          - DEBUG
          - MINING_ADDRESS
        entrypoint: ["./start-btcd.sh"]

    btcctl:
        extends: btc
        container_name: btcctl
        links:
            - "btcd:rpcserver"
        entrypoint: ["./start-btcctl.sh"]

    lnd:
        image: lnd
        build:
          context: ../
          dockerfile: docker/lnd/Dockerfile
        environment:
          - RPCUSER
          - RPCPASS
          - DEBUG
        volumes:
            - shared:/rpc
        entrypoint: ["./start-lnd.sh"]

    alice:
      extends: lnd
      container_name: alice
      links:
          - "btcd:btcd"

    bob:
      extends: lnd
      container_name: bob
      links:
          - "btcd:btcd"

volumes:
  # shared volume is need to store the btcd rpc certificates and us it within
  # btcctl and lnd containers.
  shared:
    driver: local

  # blockhain volume is needed for maintaining blockchain persistance
  # during btcd container recreation.
  blockchain:
    driver: local

{'fraction_non_alphanumeric': 0.07638646668991977, 'fraction_numerical': 0.0006975933031042902, 'mean_word_length': 1.567591763652641, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4893818', 'n_tokens_mistral': 874, 'n_tokens_neox': 848, 'n_words': 247}