2018-08-10 11:52:29 +02:00
|
|
|
version: '2.1'
|
|
|
|
|
2018-08-13 14:16:15 +02:00
|
|
|
# Run: docker-compose --project-name=ocean up
|
|
|
|
|
2018-08-10 11:52:29 +02:00
|
|
|
services:
|
|
|
|
mongodb:
|
|
|
|
image: mongo:3.6
|
|
|
|
ports:
|
|
|
|
- "27017:27017"
|
|
|
|
command: mongod
|
2018-08-13 12:10:17 +02:00
|
|
|
networks:
|
|
|
|
- backend
|
2018-08-10 14:15:07 +02:00
|
|
|
|
2018-08-10 11:52:29 +02:00
|
|
|
bigchaindb:
|
|
|
|
depends_on:
|
|
|
|
- mongodb
|
|
|
|
image: bigchaindb/bigchaindb:2.0.0-beta1
|
|
|
|
environment:
|
|
|
|
BIGCHAINDB_DATABASE_BACKEND: localmongodb
|
|
|
|
BIGCHAINDB_DATABASE_HOST: mongodb
|
|
|
|
BIGCHAINDB_DATABASE_PORT: 27017
|
|
|
|
BIGCHAINDB_SERVER_BIND: 0.0.0.0:9984
|
|
|
|
BIGCHAINDB_WSSERVER_HOST: 0.0.0.0
|
|
|
|
BIGCHAINDB_WSSERVER_ADVERTISED_HOST: bigchaindb
|
|
|
|
BIGCHAINDB_TENDERMINT_HOST: tendermint
|
|
|
|
BIGCHAINDB_TENDERMINT_PORT: 46657
|
|
|
|
ports:
|
|
|
|
- "9984:9984"
|
|
|
|
- "9985:9985"
|
|
|
|
- "46658"
|
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "bash", "-c", "curl http://bigchaindb:9984 && curl http://tendermint:46657/abci_query"]
|
|
|
|
interval: 3s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 3
|
2018-08-13 12:10:17 +02:00
|
|
|
networks:
|
|
|
|
- backend
|
2018-08-10 14:15:07 +02:00
|
|
|
|
2018-08-10 11:52:29 +02:00
|
|
|
tendermint:
|
2018-08-13 14:16:15 +02:00
|
|
|
depends_on:
|
|
|
|
- bigchaindb
|
2018-08-10 11:52:29 +02:00
|
|
|
image: tendermint/tendermint:0.19.9
|
|
|
|
# volumes:
|
|
|
|
# - ./tmdata:/tendermint
|
|
|
|
entrypoint: ''
|
|
|
|
ports:
|
|
|
|
- "46656:46656"
|
|
|
|
- "46657:46657"
|
|
|
|
command: sh -c "tendermint init && tendermint node --consensus.create_empty_blocks=false --proxy_app=tcp://bigchaindb:46658"
|
2018-08-13 12:10:17 +02:00
|
|
|
networks:
|
|
|
|
- backend
|
2018-08-10 14:15:07 +02:00
|
|
|
|
|
|
|
keeper-contracts:
|
|
|
|
image: oceanprotocol/keeper-contracts
|
|
|
|
ports:
|
|
|
|
- 8545:8545
|
2018-08-14 16:30:17 +02:00
|
|
|
networks:
|
2018-08-10 14:15:07 +02:00
|
|
|
- backend
|
|
|
|
volumes:
|
2018-08-14 16:00:23 +02:00
|
|
|
- artifacts:/keeper-contracts/artifacts/
|
2018-08-10 14:15:07 +02:00
|
|
|
|
2018-08-16 10:20:10 +02:00
|
|
|
provider:
|
|
|
|
image: oceanprotocol/provider
|
2018-08-10 11:52:29 +02:00
|
|
|
ports:
|
|
|
|
- 5000:5000
|
|
|
|
networks:
|
|
|
|
- backend
|
|
|
|
depends_on:
|
|
|
|
- keeper-contracts
|
2018-08-10 16:11:35 +02:00
|
|
|
volumes:
|
2018-08-15 11:25:01 +02:00
|
|
|
- artifacts:/usr/local/contracts/:ro
|
2018-08-10 14:15:07 +02:00
|
|
|
|
2018-08-10 13:20:16 +02:00
|
|
|
pleuston:
|
|
|
|
image: oceanprotocol/pleuston
|
|
|
|
ports:
|
|
|
|
- 3000:3000
|
2018-08-10 14:15:07 +02:00
|
|
|
depends_on:
|
|
|
|
- keeper-contracts
|
|
|
|
volumes:
|
2018-08-14 16:00:23 +02:00
|
|
|
- artifacts:/pleuston/node_modules/@oceanprotocol/keeper-contracts/artifacts/:ro
|
2018-08-10 11:52:29 +02:00
|
|
|
|
|
|
|
networks:
|
|
|
|
backend:
|
2018-08-14 16:00:23 +02:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
artifacts:
|