iuna

iuna

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

docker-compose.yml (5228B)


      1 name: iuna-local-testnet
      2 
      3 x-iuna-node: &iuna-node
      4   build:
      5     context: .
      6     dockerfile: Dockerfile.local-testnet
      7   image: iuna-local-testnet:latest
      8   init: true
      9   restart: unless-stopped
     10   healthcheck:
     11     test: ["CMD", "curl", "-fsS", "http://127.0.0.1:18661/api/auth/status"]
     12     interval: 10s
     13     timeout: 3s
     14     retries: 12
     15     start_period: 10s
     16 
     17 services:
     18   website:
     19     build:
     20       context: .
     21       dockerfile: Dockerfile
     22     image: iuna-static-site:latest
     23     init: true
     24     restart: unless-stopped
     25     ports:
     26       - "8080:80"
     27 
     28   bootstrap:
     29     <<: *iuna-node
     30     hostname: iuna-bootstrap
     31     environment:
     32       IUNA_WALLET_PASSWORD: ${IUNA_TESTNET_PASSWORD:-testtesttest}
     33       IUNA_SETUP_COMPLETE: "true"
     34       IUNA_LOCAL_TESTNET: "true"
     35       IUNA_AUTOMATIC_BURN_ENABLED: "true"
     36       IUNA_POW_MINING_ENABLED: "false"
     37     entrypoint: ["/bin/sh", "-c"]
     38     command:
     39       - 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.28.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.28.0.10:9444 --debug; fi
     40     ports:
     41       - "8661:18661"
     42       - "19444:9444"
     43     volumes:
     44       - bootstrap-data:/data
     45     networks:
     46       iuna-testnet:
     47         ipv4_address: 172.28.0.10
     48 
     49   node2:
     50     <<: *iuna-node
     51     hostname: iuna-node2
     52     environment:
     53       IUNA_WALLET_PASSWORD: ${IUNA_TESTNET_PASSWORD:-testtesttest}
     54       IUNA_SETUP_COMPLETE: "true"
     55       IUNA_LOCAL_TESTNET: "true"
     56       IUNA_AUTOMATIC_BURN_ENABLED: "true"
     57       IUNA_POW_MINING_ENABLED: "true"
     58       IUNA_POW_MINING_WORKERS: "1"
     59     entrypoint: ["/bin/sh", "-c"]
     60     command:
     61       - exec iuna --join 172.28.0.10:9444 --data-dir /data --http 0.0.0.0:18661 --p2p 0.0.0.0:9444 --p2p-announce 172.28.0.11:9444 --debug
     62     depends_on:
     63       bootstrap:
     64         condition: service_healthy
     65     ports:
     66       - "8662:18661"
     67       - "19445:9444"
     68     volumes:
     69       - node2-data:/data
     70     networks:
     71       iuna-testnet:
     72         ipv4_address: 172.28.0.11
     73 
     74   node3:
     75     <<: *iuna-node
     76     hostname: iuna-node3
     77     environment:
     78       IUNA_WALLET_PASSWORD: ${IUNA_TESTNET_PASSWORD:-testtesttest}
     79       IUNA_SETUP_COMPLETE: "true"
     80       IUNA_LOCAL_TESTNET: "true"
     81       IUNA_AUTOMATIC_BURN_ENABLED: "true"
     82       IUNA_POW_MINING_ENABLED: "true"
     83       IUNA_POW_MINING_WORKERS: "1"
     84     entrypoint: ["/bin/sh", "-c"]
     85     command:
     86       - exec iuna --join 172.28.0.10:9444 --data-dir /data --http 0.0.0.0:18661 --p2p 0.0.0.0:9444 --p2p-announce 172.28.0.12:9444 --stratum 0.0.0.0:3333 --debug
     87     depends_on:
     88       bootstrap:
     89         condition: service_healthy
     90     ports:
     91       - "8663:18661"
     92       - "19446:9444"
     93       - "3333:3333"
     94     volumes:
     95       - node3-data:/data
     96     networks:
     97       iuna-testnet:
     98         ipv4_address: 172.28.0.12
     99 
    100   node4:
    101     <<: *iuna-node
    102     hostname: iuna-node4
    103     environment:
    104       IUNA_WALLET_PASSWORD: ${IUNA_TESTNET_PASSWORD:-testtesttest}
    105       IUNA_SETUP_COMPLETE: "true"
    106       IUNA_LOCAL_TESTNET: "true"
    107       IUNA_AUTOMATIC_BURN_ENABLED: "true"
    108       IUNA_POW_MINING_ENABLED: "true"
    109       IUNA_POW_MINING_WORKERS: "1"
    110     entrypoint: ["/bin/sh", "-c"]
    111     command:
    112       - exec iuna --join 172.28.0.10:9444 --data-dir /data --http 0.0.0.0:18661 --p2p 0.0.0.0:9444 --p2p-announce 172.28.0.13:9444 --debug
    113     depends_on:
    114       bootstrap:
    115         condition: service_healthy
    116     ports:
    117       - "8664:18661"
    118       - "19447:9444"
    119     volumes:
    120       - node4-data:/data
    121     networks:
    122       iuna-testnet:
    123         ipv4_address: 172.28.0.13
    124 
    125   node5:
    126     <<: *iuna-node
    127     hostname: iuna-node5
    128     environment:
    129       IUNA_WALLET_PASSWORD: ${IUNA_TESTNET_PASSWORD:-testtesttest}
    130       IUNA_SETUP_COMPLETE: "true"
    131       IUNA_LOCAL_TESTNET: "true"
    132       IUNA_AUTOMATIC_BURN_ENABLED: "true"
    133       IUNA_POW_MINING_ENABLED: "true"
    134       IUNA_POW_MINING_WORKERS: "1"
    135     entrypoint: ["/bin/sh", "-c"]
    136     command:
    137       - exec iuna --join 172.28.0.10:9444 --data-dir /data --http 0.0.0.0:18661 --p2p 0.0.0.0:9444 --p2p-announce 172.28.0.14:9444 --debug
    138     depends_on:
    139       bootstrap:
    140         condition: service_healthy
    141     ports:
    142       - "8665:18661"
    143       - "19448:9444"
    144     volumes:
    145       - node5-data:/data
    146     networks:
    147       iuna-testnet:
    148         ipv4_address: 172.28.0.14
    149 
    150   node6:
    151     <<: *iuna-node
    152     hostname: iuna-node6
    153     environment:
    154       IUNA_WALLET_PASSWORD: ${IUNA_TESTNET_PASSWORD:-testtesttest}
    155       IUNA_SETUP_COMPLETE: "true"
    156       IUNA_LOCAL_TESTNET: "true"
    157       IUNA_AUTOMATIC_BURN_ENABLED: "true"
    158       IUNA_POW_MINING_ENABLED: "true"
    159       IUNA_POW_MINING_WORKERS: "1"
    160     entrypoint: ["/bin/sh", "-c"]
    161     command:
    162       - exec iuna --join 172.28.0.10:9444 --data-dir /data --http 0.0.0.0:18661 --p2p 0.0.0.0:9444 --p2p-announce 172.28.0.15:9444 --debug
    163     depends_on:
    164       bootstrap:
    165         condition: service_healthy
    166     ports:
    167       - "8666:18661"
    168       - "19449:9444"
    169     volumes:
    170       - node6-data:/data
    171     networks:
    172       iuna-testnet:
    173         ipv4_address: 172.28.0.15
    174 
    175 networks:
    176   iuna-testnet:
    177     driver: bridge
    178     ipam:
    179       config:
    180         - subnet: 172.28.0.0/24
    181 
    182 volumes:
    183   bootstrap-data:
    184   node2-data:
    185   node3-data:
    186   node4-data:
    187   node5-data:
    188   node6-data: