mirror of
https://github.com/oceanprotocol/barge.git
synced 2024-10-31 23:55:18 +01:00
136 lines
3.7 KiB
YAML
136 lines
3.7 KiB
YAML
version: '2.1'
|
|
|
|
# Run: docker-compose --project-name=ocean up
|
|
|
|
services:
|
|
mongodb:
|
|
image: mongo:3.6
|
|
ports:
|
|
- "27017:27017"
|
|
command: mongod
|
|
networks:
|
|
backend:
|
|
ipv4_address: 172.15.0.11
|
|
|
|
parity-node:
|
|
image: oceanprotocol/parity-ethereum:beta
|
|
entrypoint: /opt/parity/parity
|
|
command:
|
|
--config /home/parity/parity/config/secretstoreclient.toml
|
|
--db-path /home/parity/chains
|
|
--keys-path /home/parity/.local/share/io.parity.ethereum/keys
|
|
--base-path /home/parity/base
|
|
--engine-signer 0x00bd138abd70e2f00903268f3db08f2d25677c9e
|
|
--ws-interface all
|
|
--jsonrpc-cors all
|
|
--jsonrpc-interface all
|
|
--jsonrpc-hosts all
|
|
--jsonrpc-apis all
|
|
--unsafe-expose
|
|
--unlock 0x00bd138abd70e2f00903268f3db08f2d25677c9e
|
|
volumes:
|
|
- ./parity/parity/config:/home/parity/parity/config
|
|
- parity-node:/home/parity/.local/share/io.parity.ethereum/
|
|
- ./parity/parity/authorities/validator0.json:/home/parity/.local/share/io.parity.ethereum/keys/ocean-network/validator.json
|
|
- ./parity/parity/keys:/home/parity/.local/share/io.parity.ethereum/keys/ocean-network
|
|
- ./parity/parity/authorities/validator0.pwd:/home/parity/parity/validator.pwd
|
|
- ./parity/parity/node0.network.key:/home/parity/.local/share/io.parity.ethereum/network/key
|
|
ports:
|
|
- 8545:8545
|
|
networks:
|
|
backend:
|
|
ipv4_address: 172.15.0.12
|
|
|
|
secret-store:
|
|
image: oceanprotocol/parity-ethereum:master
|
|
# entrypoint: tail -f /dev/null
|
|
entrypoint: /opt/parity/parity
|
|
command:
|
|
--config /etc/parity/secretstore/config.toml --jsonrpc-cors all --jsonrpc-interface all --jsonrpc-hosts all --jsonrpc-apis all
|
|
volumes:
|
|
- ./parity/secret_store/config/:/etc/parity/secretstore/
|
|
- secret-store:/parity_data/
|
|
- ./parity/secret_store/keys/:/parity_data/keys/ocean-network/
|
|
ports:
|
|
- 12000:12000
|
|
- 12001
|
|
networks:
|
|
backend:
|
|
ipv4_address: 172.15.0.13
|
|
|
|
secret-store-cors-proxy:
|
|
image: nginx:alpine
|
|
volumes:
|
|
- ./cors-proxy.conf:/etc/nginx/nginx.conf:ro
|
|
depends_on:
|
|
- secret-store
|
|
ports:
|
|
- 12001:12001
|
|
networks:
|
|
backend:
|
|
ipv4_address: 172.15.0.16
|
|
command: nginx -g 'daemon off;'
|
|
|
|
keeper-contracts:
|
|
image: oceanprotocol/keeper-contracts:${OCEAN_VERSION:-stable}
|
|
networks:
|
|
backend:
|
|
ipv4_address: 172.15.0.14
|
|
environment:
|
|
LOCAL_CONTRACTS: "true"
|
|
DEPLOY_CONTRACTS: ${DEPLOY_CONTRACTS}
|
|
DATABASE_PATH: "/ganache-db"
|
|
REUSE_DATABASE: ${REUSE_DATABASE}
|
|
NETWORK_NAME: ${KEEPER_NETWORK_NAME}
|
|
POA_HOST: "parity-node"
|
|
volumes:
|
|
- ${ARTIFACTS_FOLDER}:/keeper-contracts/artifacts/
|
|
- ${GANACHE_DATABASE_PATH}/ganache-db:/ganache-db
|
|
|
|
aquarius:
|
|
image: oceanprotocol/aquarius:${OCEAN_VERSION:-stable}
|
|
ports:
|
|
- 5000:5000
|
|
networks:
|
|
backend:
|
|
ipv4_address: 172.15.0.15
|
|
depends_on:
|
|
- keeper-contracts
|
|
environment:
|
|
KEEPER_HOST: http://parity-node
|
|
DB_HOSTNAME: mongodb
|
|
LOCAL_CONTRACTS: 'true'
|
|
volumes:
|
|
- ${ARTIFACTS_FOLDER}:/usr/local/keeper-contracts/:ro
|
|
|
|
brizo:
|
|
image: oceanprotocol/brizo:${OCEAN_VERSION:-stable}
|
|
ports:
|
|
- 8030:8030
|
|
networks:
|
|
backend:
|
|
ipv4_address: 172.15.0.17
|
|
depends_on:
|
|
- keeper-contracts
|
|
- parity-node
|
|
environment:
|
|
KEEPER_URL: http://parity-node:8545
|
|
LOCAL_CONTRACTS: "true"
|
|
KEEPER_NETWORK_NAME: ${KEEPER_NETWORK_NAME}
|
|
AQUARIUS_URL: http://aquarius:5000
|
|
volumes:
|
|
- ${ARTIFACTS_FOLDER}:/usr/local/keeper-contracts/:ro
|
|
|
|
networks:
|
|
backend:
|
|
driver: bridge
|
|
ipam:
|
|
driver: default
|
|
config:
|
|
- subnet: 172.15.0.1/24
|
|
gateway: 172.15.0.1
|
|
|
|
volumes:
|
|
parity-node:
|
|
secret-store:
|