github.com/phillinzzz/newBsc@v1.1.6/tests/truffle/docker-compose.yml (about)

     1  version: "3"
     2  
     3  services:
     4    genesis:
     5      image: bsc-genesis
     6      env_file: .env
     7      environment:
     8        INIT_HOLDER_BALANCE: "500000000000000000000"
     9        NUMS_OF_VALIDATOR: 1
    10      volumes:
    11        - ./storage:/root/storage
    12        - ./scripts:/root/scripts
    13        - ./config:/root/config
    14        - ./init-holders:/root/init-holders
    15      command: /root/scripts/bootstrap.sh
    16    
    17    bsc-rpc:
    18      image: bsc
    19      healthcheck:
    20        test: nc -z localhost 8545
    21        interval: 3s
    22        timeout: 5s
    23        retries: 15
    24      env_file: .env
    25      environment:
    26        NODE_ID: bsc-rpc
    27      volumes:
    28        - ./storage/bsc-rpc:/root/.ethereum
    29        - ./scripts:/scripts
    30        - ./config:/config
    31      entrypoint: [ "sh", "-c", "/scripts/bsc-rpc.sh" ]
    32  
    33    bsc-validator1:
    34      image: bsc
    35      env_file: .env
    36      environment:
    37        NODE_ID: bsc-validator1
    38        BOOTSTRAP_HOST: bsc-rpc
    39      volumes:
    40        - ./storage/bsc-validator1:/root/.ethereum
    41        - ./scripts:/scripts
    42      entrypoint: [ "sh", "-c", "/scripts/bsc-validator.sh" ]
    43    
    44    truffle-test:
    45      image: truffle-test
    46      command: /scripts/truffle-test.sh
    47      env_file: .env
    48      environment:
    49        RPC_HOST: bsc-rpc
    50        RPC_PORT: 8545
    51      volumes:
    52        - ./scripts:/scripts
    53      depends_on:
    54        bsc-rpc:
    55          condition: service_healthy
    56  
    57  networks:
    58    default:
    59      ipam:
    60        driver: default
    61        config:
    62          - subnet: 99.1.0.0/16