Merge pull request #22 from oceanprotocol/feature/update_compose

Feature/update compose
This commit is contained in:
Javier Cortejoso 2018-09-19 14:38:24 +02:00 committed by GitHub
commit 550621e717
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 40 deletions

View File

@ -14,6 +14,7 @@ Docker compose and tools running the complete Ocean Protocol stack
* [Get Started](#get-started)
- [Docker](#docker)
* [Ocean components](#ocean-components)
* [Ocean components versions](#ocean-components-versions)
* [Contributing](#contributing)
* [License](#license)
@ -53,7 +54,15 @@ The Ocean Docker compose starts the following components:
* **Pleuston** frontend application. Listening on port **3000**.
* **Provider backend**. Listening on port **5000**.
* **Keeper contracts**. Listening on port **8545**.
* **BigchainDB**. Listening on port on port **9984**.
## Ocean components versions
The version of the Ocean components can be configured setting the environment variable `OCEAN_VERSION`. By default `master` branch runs the latest stable version release, and `develop` branch runs the code generated in the `master` branch of the Ocean components. If you want to run the component's code of `develop` branch:
```bash
export OCEAN_VERSION=latest
docker-compose --project-name=ocean up
```
![Ocean Docker Images](doc/img/docker-images.jpg)

View File

@ -11,45 +11,6 @@ services:
networks:
- backend
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
networks:
- backend
tendermint:
depends_on:
- bigchaindb
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"
networks:
- backend
keeper-contracts:
image: oceanprotocol/keeper-contracts:${OCEAN_VERSION:-stable}
ports:
@ -67,6 +28,9 @@ services:
- backend
depends_on:
- keeper-contracts
environment:
KEEPER_HOST: http://keeper-contracts
DB_HOSTNAME: mongodb
volumes:
- artifacts:/usr/local/contracts/:ro
@ -76,6 +40,9 @@ services:
- 3000:3000
depends_on:
- keeper-contracts
environment:
KEEPER_HOST: keeper-contracts
OCEAN_HOST: provider
volumes:
- artifacts:/pleuston/node_modules/@oceanprotocol/keeper-contracts/artifacts/:ro