iuna

iuna

iuna - experimental mainnet-candidate protocol
git clone https://getiuna.org/git/iuna.git
Log | Files | Refs | README | LICENSE

docker-compose.e2e.yml (5992B)


      1 services:
      2   bootstrap:
      3     build:
      4       args:
      5         IUNA_CARGO_FEATURES: "--features e2e"
      6     image: iuna-local-e2e:latest
      7     restart: "no"
      8     cap_add: [NET_ADMIN]
      9     environment:
     10       IUNA_AUTOMATIC_BURN_ENABLED: "${IUNA_E2E_REFERENCE_MINING_ENABLED:-true}"
     11     command:
     12       - if [ -s /data/chain.sqlite3 ]; then exec iuna --data-dir /data --http 0.0.0.0:18661 --p2p 0.0.0.0:9444 --p2p-announce 172.29.0.10:9444 --debug; else exec iuna --genesis --data-dir /data --http 0.0.0.0:18661 --p2p 0.0.0.0:9444 --p2p-announce 172.29.0.10:9444 --debug; fi
     13     healthcheck:
     14       interval: 1s
     15       retries: 900
     16       start_period: 2s
     17     ports: !override
     18       - "${IUNA_E2E_BOOTSTRAP_PORT:-28661}:18661"
     19     volumes: !override
     20       - "${IUNA_E2E_RUNTIME_DIR:?set IUNA_E2E_RUNTIME_DIR}/bootstrap:/data"
     21     networks:
     22       iuna-testnet:
     23         ipv4_address: 172.29.0.10
     24 
     25   node2:
     26     build:
     27       args:
     28         IUNA_CARGO_FEATURES: "--features e2e"
     29     image: iuna-local-e2e:latest
     30     restart: "no"
     31     cap_add: [NET_ADMIN]
     32     environment:
     33       IUNA_AUTOMATIC_BURN_ENABLED: "${IUNA_E2E_REFERENCE_MINING_ENABLED:-true}"
     34       IUNA_POW_MINING_ENABLED: "${IUNA_E2E_REFERENCE_MINING_ENABLED:-true}"
     35     command:
     36       - exec iuna --join 172.29.0.10:9444 --data-dir /data --http 0.0.0.0:18661 --p2p 0.0.0.0:9444 --p2p-announce 172.29.0.11:9444 --debug
     37     healthcheck:
     38       interval: 1s
     39       retries: 900
     40       start_period: 2s
     41     ports: !override
     42       - "${IUNA_E2E_NODE2_PORT:-28662}:18661"
     43     volumes: !override
     44       - "${IUNA_E2E_RUNTIME_DIR:?set IUNA_E2E_RUNTIME_DIR}/node2:/data"
     45     networks:
     46       iuna-testnet:
     47         ipv4_address: 172.29.0.11
     48 
     49   node3:
     50     build:
     51       args:
     52         IUNA_CARGO_FEATURES: "--features e2e"
     53     image: iuna-local-e2e:latest
     54     restart: "no"
     55     cap_add: [NET_ADMIN]
     56     environment:
     57       IUNA_AUTOMATIC_BURN_ENABLED: "${IUNA_E2E_REFERENCE_MINING_ENABLED:-true}"
     58       IUNA_POW_MINING_ENABLED: "${IUNA_E2E_REFERENCE_MINING_ENABLED:-true}"
     59     command:
     60       - exec iuna --join 172.29.0.10:9444 --data-dir /data --http 0.0.0.0:18661 --p2p 0.0.0.0:9444 --p2p-announce 172.29.0.12:9444 --stratum 0.0.0.0:3333 --debug
     61     healthcheck:
     62       interval: 1s
     63       retries: 900
     64       start_period: 2s
     65     ports: !override
     66       - "${IUNA_E2E_NODE3_PORT:-28663}:18661"
     67       - "${IUNA_E2E_STRATUM_PORT:-23333}:3333"
     68     volumes: !override
     69       - "${IUNA_E2E_RUNTIME_DIR:?set IUNA_E2E_RUNTIME_DIR}/node3:/data"
     70     networks:
     71       iuna-testnet:
     72         ipv4_address: 172.29.0.12
     73 
     74   node4:
     75     build:
     76       args:
     77         IUNA_CARGO_FEATURES: "--features e2e"
     78     image: iuna-local-e2e:latest
     79     restart: "no"
     80     cap_add: [NET_ADMIN]
     81     environment:
     82       IUNA_AUTOMATIC_BURN_ENABLED: "${IUNA_E2E_REFERENCE_MINING_ENABLED:-true}"
     83       IUNA_POW_MINING_ENABLED: "${IUNA_E2E_REFERENCE_MINING_ENABLED:-true}"
     84     command:
     85       - exec iuna --join 172.29.0.10:9444 --data-dir /data --http 0.0.0.0:18661 --p2p 0.0.0.0:9444 --p2p-announce 172.29.0.13:9444 --debug
     86     healthcheck:
     87       interval: 1s
     88       retries: 900
     89       start_period: 2s
     90     ports: !override
     91       - "${IUNA_E2E_NODE4_PORT:-28664}:18661"
     92     volumes: !override
     93       - "${IUNA_E2E_RUNTIME_DIR:?set IUNA_E2E_RUNTIME_DIR}/node4:/data"
     94     networks:
     95       iuna-testnet:
     96         ipv4_address: 172.29.0.13
     97 
     98   node5:
     99     build:
    100       args:
    101         IUNA_CARGO_FEATURES: "--features e2e"
    102     image: iuna-local-e2e:latest
    103     restart: "no"
    104     cap_add: [NET_ADMIN]
    105     environment:
    106       IUNA_AUTOMATIC_BURN_ENABLED: "${IUNA_E2E_REFERENCE_MINING_ENABLED:-true}"
    107       IUNA_POW_MINING_ENABLED: "${IUNA_E2E_REFERENCE_MINING_ENABLED:-true}"
    108     command:
    109       - exec iuna --join 172.29.0.13:9444 --data-dir /data --http 0.0.0.0:18661 --p2p 0.0.0.0:9444 --p2p-announce 172.29.0.14:9444 --debug
    110     healthcheck:
    111       interval: 1s
    112       retries: 900
    113       start_period: 2s
    114     ports: !override
    115       - "${IUNA_E2E_NODE5_PORT:-28665}:18661"
    116     volumes: !override
    117       - "${IUNA_E2E_RUNTIME_DIR:?set IUNA_E2E_RUNTIME_DIR}/node5:/data"
    118     networks:
    119       iuna-testnet:
    120         ipv4_address: 172.29.0.14
    121 
    122   node6:
    123     build:
    124       args:
    125         IUNA_CARGO_FEATURES: "--features e2e"
    126     image: iuna-local-e2e:latest
    127     restart: "no"
    128     cap_add: [NET_ADMIN]
    129     environment:
    130       IUNA_AUTOMATIC_BURN_ENABLED: "${IUNA_E2E_REFERENCE_MINING_ENABLED:-true}"
    131       IUNA_POW_MINING_ENABLED: "${IUNA_E2E_REFERENCE_MINING_ENABLED:-true}"
    132     command:
    133       - exec iuna --join 172.29.0.13:9444 --data-dir /data --http 0.0.0.0:18661 --p2p 0.0.0.0:9444 --p2p-announce 172.29.0.15:9444 --debug
    134     healthcheck:
    135       interval: 1s
    136       retries: 900
    137       start_period: 2s
    138     ports: !override
    139       - "${IUNA_E2E_NODE6_PORT:-28666}:18661"
    140     volumes: !override
    141       - "${IUNA_E2E_RUNTIME_DIR:?set IUNA_E2E_RUNTIME_DIR}/node6:/data"
    142     networks:
    143       iuna-testnet:
    144         ipv4_address: 172.29.0.15
    145 
    146   syncnode:
    147     build:
    148       context: .
    149       dockerfile: Dockerfile.local-testnet
    150       args:
    151         IUNA_CARGO_FEATURES: "--features e2e"
    152     image: iuna-local-e2e:latest
    153     init: true
    154     restart: "no"
    155     environment:
    156       IUNA_WALLET_PASSWORD: ${IUNA_TESTNET_PASSWORD:-testtesttest}
    157       IUNA_SETUP_COMPLETE: "true"
    158       IUNA_LOCAL_TESTNET: "true"
    159       IUNA_AUTOMATIC_BURN_ENABLED: "false"
    160       IUNA_POW_MINING_ENABLED: "false"
    161     entrypoint: ["/bin/sh", "-c"]
    162     command:
    163       - exec iuna --join 172.29.0.13:9444 --data-dir /data --http 0.0.0.0:18661 --p2p 0.0.0.0:9444 --p2p-announce 172.29.0.16:9444 --debug
    164     healthcheck:
    165       test: ["CMD", "curl", "-fsS", "http://127.0.0.1:18661/api/auth/status"]
    166       interval: 1s
    167       timeout: 3s
    168       retries: 900
    169       start_period: 2s
    170     ports:
    171       - "${IUNA_E2E_SYNCNODE_PORT:-28667}:18661"
    172     volumes:
    173       - "${IUNA_E2E_RUNTIME_DIR:?set IUNA_E2E_RUNTIME_DIR}/syncnode:/data"
    174     networks:
    175       iuna-testnet:
    176         ipv4_address: 172.29.0.16
    177 
    178 networks:
    179   iuna-testnet:
    180     ipam:
    181       config: !override
    182         - subnet: 172.29.0.0/24