Iroha API
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

142 lines
4.1 KiB

#
# Copyright (C) 2020 diva.exchange
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
# Author/Maintainer: Konrad Bächler <konrad@diva.exchange>
#
version: "3.7"
services:
postgres.diva.local:
container_name: postgres.diva.local
image: postgres:10
command: -c max_prepared_transactions=100
restart: unless-stopped
environment:
POSTGRES_USER: iroha
POSTGRES_PASSWORD: iroha
volumes:
- postgres.diva.local:/var/lib/postgresql/data/
networks:
network.diva.local:
ipv4_address: 172.29.101.2
testnet-a.diva.local:
container_name: testnet-a.diva.local
image: divax/iroha:${TAG:-1.2.0-rc2}
restart: unless-stopped
stop_grace_period: 30s
depends_on:
- postgres.diva.local
environment:
NAME_CONTAINER_POSTGRES: postgres.diva.local
NAME_KEY: testnet-a
BLOCKCHAIN_NETWORK: diva-local
volumes:
- testnet-a.diva.local:/opt/iroha/
networks:
network.diva.local:
ipv4_address: 172.29.101.3
extra_hosts:
- testnet-a.diva.i2p:172.29.101.3
- testnet-b.diva.i2p:172.29.101.4
- testnet-c.diva.i2p:172.29.101.5
testnet-b.diva.local:
container_name: testnet-b.diva.local
image: divax/iroha:${TAG:-1.2.0-rc2}
restart: unless-stopped
stop_grace_period: 30s
depends_on:
- postgres.diva.local
environment:
NAME_CONTAINER_POSTGRES: postgres.diva.local
NAME_KEY: testnet-b
BLOCKCHAIN_NETWORK: diva-local
volumes:
- testnet-b.diva.local:/opt/iroha/
networks:
network.diva.local:
ipv4_address: 172.29.101.4
extra_hosts:
- testnet-a.diva.i2p:172.29.101.3
- testnet-b.diva.i2p:172.29.101.4
- testnet-c.diva.i2p:172.29.101.5
testnet-c.diva.local:
container_name: testnet-c.diva.local
image: divax/iroha:${TAG:-1.2.0-rc2}
restart: unless-stopped
stop_grace_period: 30s
depends_on:
- postgres.diva.local
environment:
NAME_CONTAINER_POSTGRES: postgres.diva.local
NAME_KEY: testnet-c
BLOCKCHAIN_NETWORK: diva-local
volumes:
- testnet-c.diva.local:/opt/iroha/
networks:
network.diva.local:
ipv4_address: 172.29.101.5
extra_hosts:
- testnet-a.diva.i2p:172.29.101.3
- testnet-b.diva.i2p:172.29.101.4
- testnet-c.diva.i2p:172.29.101.5
node.diva.local:
container_name: node.diva.local
build: .
image: divax/iroha-node:latest
restart: unless-stopped
depends_on:
- testnet-a.diva.local
environment:
NODE_ENV: ${NODE_ENV:-development}
IP_LISTEN: 172.29.101.201
PORT_LISTEN: 19012
TORII: ${TORII:-172.29.101.3:50051}
ACCOUNT_ID: ${ACCOUNT_ID:-}
I2P_HOSTNAME: ${I2P_HOSTNAME:-172.29.101.1}
I2P_HTTP_PROXY_PORT: ${I2P_HTTP_PROXY_PORT:-4444}
I2P_WEBCONSOLE_PORT: ${I2P_WEBCONSOLE_PORT:-7070}
BOOTSTRAP_PEER: ${BOOTSTRAP_PEER:-}
PATH_IROHA: ${PATH_IROHA:-/tmp/testnet-a.diva.local/}
volumes:
- node.diva.local:/home/node/data/
- testnet-a.diva.local:/tmp/testnet-a.diva.local/
networks:
network.diva.local:
ipv4_address: 172.29.101.201
networks:
network.diva.local:
name: network.diva.local
ipam:
driver: default
config:
- subnet: 172.29.101.0/24
volumes:
postgres.diva.local:
name: postgres.diva.local
testnet-a.diva.local:
name: testnet-a.diva.local
testnet-b.diva.local:
name: testnet-b.diva.local
testnet-c.diva.local:
name: testnet-c.diva.local
node.diva.local:
name: node.diva.local