2018-08-10 12:49:26 +02:00
|
|
|
# Copyright BigchainDB GmbH and BigchainDB contributors
|
|
|
|
# SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
|
|
|
|
# Code is Apache-2.0 and docs are CC-BY-4.0
|
|
|
|
|
2018-03-29 18:57:12 +02:00
|
|
|
version: '2.1'
|
|
|
|
|
|
|
|
services:
|
|
|
|
mongodb:
|
2018-07-17 11:15:53 +02:00
|
|
|
image: mongo:3.6
|
2018-03-29 18:57:12 +02:00
|
|
|
ports:
|
|
|
|
- "27017"
|
|
|
|
command: mongod
|
|
|
|
bigchaindb:
|
|
|
|
depends_on:
|
|
|
|
- mongodb
|
|
|
|
- tendermint
|
|
|
|
image: bigchaindb/bigchaindb:master
|
|
|
|
environment:
|
|
|
|
BIGCHAINDB_DATABASE_HOST: mongodb
|
|
|
|
BIGCHAINDB_DATABASE_PORT: 27017
|
|
|
|
BIGCHAINDB_SERVER_BIND: 0.0.0.0:9984
|
|
|
|
BIGCHAINDB_WSSERVER_HOST: 0.0.0.0
|
|
|
|
BIGCHAINDB_TENDERMINT_HOST: tendermint
|
2018-07-17 11:15:53 +02:00
|
|
|
BIGCHAINDB_TENDERMINT_PORT: 26657
|
2018-03-29 18:57:12 +02:00
|
|
|
ports:
|
|
|
|
- "9984:9984"
|
|
|
|
- "9985:9985"
|
2018-07-17 11:15:53 +02:00
|
|
|
- "26658"
|
2018-03-29 18:57:12 +02:00
|
|
|
healthcheck:
|
2018-07-17 11:15:53 +02:00
|
|
|
test: ["CMD", "bash", "-c", "curl http://bigchaindb:9984 && curl http://tendermint:26657/abci_query"]
|
2018-03-29 18:57:12 +02:00
|
|
|
interval: 3s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 3
|
|
|
|
command: -l DEBUG start
|
|
|
|
tendermint:
|
2020-12-10 12:54:35 +01:00
|
|
|
image: tendermint/tendermint:v0.31.5
|
2018-07-17 11:15:53 +02:00
|
|
|
# volumes:
|
|
|
|
# - ./tmdata:/tendermint
|
2018-03-29 18:57:12 +02:00
|
|
|
entrypoint: ''
|
|
|
|
ports:
|
2018-07-17 11:15:53 +02:00
|
|
|
- "26656"
|
|
|
|
- "26657"
|
|
|
|
command: sh -c "tendermint init && tendermint node --consensus.create_empty_blocks=false --proxy_app=tcp://bigchaindb:26658"
|