Skip to content

Commit

Permalink
Merge pull request #71 from oceanprotocol/feature/refactor
Browse files Browse the repository at this point in the history
Refactor to use individual docker compose files
  • Loading branch information
Sebastian Gerske committed Dec 10, 2018
2 parents 8dc9b4b + 958448d commit 2b610fe
Show file tree
Hide file tree
Showing 64 changed files with 800 additions and 597 deletions.
11 changes: 0 additions & 11 deletions .env

This file was deleted.

9 changes: 2 additions & 7 deletions brizo.env
@@ -1,17 +1,12 @@
# Use this file to set the env vars required for Brizo.

KEEPER_URL=http://parity-node:8545
LOCAL_CONTRACTS=true
KEEPER_NETWORK_NAME=ocean_poa_net_local

SECRET_STORE_URL=http://secret-store:12001
PARITY_URL=http://parity-node:8545
# Set a valid parity address and password to have seamless interaction with the `keeper`
PARITY_ADDRESS=0x00bd138abd70e2f00903268f3db08f2d25677c9e
PARITY_PASSWORD=node0

AQUARIUS_URL=http://aquarius:5000
BRIZO_URL=http://brizo:8030
SECRET_STORE_URL=http://secret-store:12001
RPC_URL=http://keeper-node:8545

AZURE_ACCOUNT_NAME=
AZURE_ACCOUNT_KEY=
Expand Down
20 changes: 20 additions & 0 deletions compose-files/aquarius.yml
@@ -0,0 +1,20 @@
version: '2.1'
services:
aquarius:
image: oceanprotocol/aquarius:${OCEAN_VERSION:-stable}
ports:
- 5000:5000
networks:
backend:
ipv4_address: 172.15.0.15
depends_on:
- mongodb
environment:
DB_HOSTNAME: mongodb

mongodb:
image: mongo:3.6
command: mongod
networks:
backend:
ipv4_address: 172.15.0.11
18 changes: 18 additions & 0 deletions compose-files/brizo.yml
@@ -0,0 +1,18 @@
version: '2.1'
services:
brizo:
image: oceanprotocol/brizo:${OCEAN_VERSION:-stable}
ports:
- 8030:8030
networks:
backend:
ipv4_address: 172.15.0.17
depends_on:
- keeper-node
env_file:
- ${BRIZO_ENV_FILE}
environment:
KEEPER_URL: ${KEEPER_RPC_URL}
LOCAL_CONTRACTS: ${KEEPER_DEPLOY_CONTRACTS}
volumes:
- ${KEEPER_ARTIFACTS_FOLDER}:/usr/local/keeper-contracts:ro
20 changes: 20 additions & 0 deletions compose-files/keeper_contracts.yml
@@ -0,0 +1,20 @@
version: '2.1'
services:
keeper-contracts:
image: oceanprotocol/keeper-contracts:${OCEAN_VERSION:-stable}
networks:
backend:
ipv4_address: 172.15.0.14
environment:
DEPLOY_CONTRACTS: ${KEEPER_DEPLOY_CONTRACTS}
LOCAL_CONTRACTS: ${KEEPER_DEPLOY_CONTRACTS}
REUSE_DATABASE: ${GANACHE_REUSE_DATABASE}
DATABASE_PATH: "/ganache-db"
NETWORK_NAME: ${KEEPER_NETWORK_NAME}
KEEPER_RPC_HOST: ${KEEPER_RPC_HOST}
KEEPER_RPC_PORT: ${KEEPER_RPC_PORT}
KEEPER_RPC_URL: ${KEEPER_RPC_URL}
depends_on:
- keeper-node
volumes:
- ${KEEPER_ARTIFACTS_FOLDER}:/keeper-contracts/artifacts/
14 changes: 14 additions & 0 deletions compose-files/network_volumes.yml
@@ -0,0 +1,14 @@
version: '2.1'

networks:
backend:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.15.0.1/24
gateway: 172.15.0.1

volumes:
keeper-node:
secret-store:
11 changes: 11 additions & 0 deletions compose-files/nodes/ganache_node.yml
@@ -0,0 +1,11 @@
version: '2.1'
services:
keeper-node:
image: trufflesuite/ganache-cli:latest
command:
-d
ports:
- 8545:8545
networks:
backend:
ipv4_address: 172.15.0.12
22 changes: 22 additions & 0 deletions compose-files/nodes/kovan_node.yml
@@ -0,0 +1,22 @@
version: '2.1'
services:
keeper-node:
image: parity/parity:stable
command:
--chain kovan
--base-path /home/parity/base
--keys-path /home/parity/.local/share/io.parity.ethereum/keys
--light
--ws-interface all
--jsonrpc-cors all
--jsonrpc-interface all
--jsonrpc-hosts all
--jsonrpc-apis all
--unsafe-expose
volumes:
- ../networks/kovan/keys:/home/parity/.local/share/io.parity.ethereum/keys/kovan
ports:
- 8545:8545
networks:
backend:
ipv4_address: 172.15.0.12
29 changes: 29 additions & 0 deletions compose-files/nodes/nile_node.yml
@@ -0,0 +1,29 @@
version: '2.1'
services:
keeper-node:
image: parity/parity:stable
command:
--config /home/parity/parity/config/config.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:
- ../networks/nile/config:/home/parity/parity/config
- keeper-node:/home/parity/.local/share/io.parity.ethereum/
- ../networks/nile/authorities/validator0.json:/home/parity/.local/share/io.parity.ethereum/keys/nile/validator.json
- ../networks/nile/keys:/home/parity/.local/share/io.parity.ethereum/keys/nile
- ../networks/nile/authorities/validator0.pwd:/home/parity/parity/validator.pwd
- ../networks/nile/node0.network.key:/home/parity/.local/share/io.parity.ethereum/network/key
ports:
- 8545:8545
networks:
backend:
ipv4_address: 172.15.0.12
27 changes: 27 additions & 0 deletions compose-files/nodes/spree_node.yml
@@ -0,0 +1,27 @@
version: '2.1'
services:
keeper-node:
image: parity/parity:stable
command:
--config /home/parity/config/config.toml
--db-path /home/parity/chains
--keys-path /home/parity/.local/keys
--base-path /home/parity/base
--min-gas-price 0
--jsonrpc-cors all
--jsonrpc-interface all
--jsonrpc-hosts all
--jsonrpc-apis all
--unsafe-expose
--unlock 0x00bd138abd70e2f00903268f3db08f2d25677c9e
volumes:
- ../networks/spree/config:/home/parity/config
- ../networks/spree/authorities/validator0.json:/home/parity/.local/keys/spree/validator.json
- ../networks/spree/keys:/home/parity/.local/keys/spree
- ../networks/spree/authorities/validator0.pwd:/home/parity/validator.pwd:ro
- ../networks/spree/node0.network.key:/home/parity/.local/share/io.parity.ethereum/network/key:ro
ports:
- 8545:8545
networks:
backend:
ipv4_address: 172.15.0.12
20 changes: 20 additions & 0 deletions compose-files/pleuston.yml
@@ -0,0 +1,20 @@
version: '2.1'
services:
pleuston:
image: oceanprotocol/pleuston:${OCEAN_VERSION:-stable}
networks:
backend:
ipv4_address: 172.15.0.19
ports:
- 3000:3000
depends_on:
- keeper-node
- aquarius
- brizo
environment:
# Need browser to connect to exposed ports
KEEPER_HOST: localhost
AQUARIUS_HOST: localhost
LOCAL_CONTRACTS: ${KEEPER_DEPLOY_CONTRACTS}
volumes:
- ${KEEPER_ARTIFACTS_FOLDER}:/pleuston/node_modules/@oceanprotocol/keeper-contracts/artifacts/:ro
52 changes: 52 additions & 0 deletions compose-files/secret_store.yml
@@ -0,0 +1,52 @@
version: '2.1'
services:
secret-store:
image: oceanprotocol/parity-ethereum:master
entrypoint: /opt/parity/parity
command:
--config /etc/parity/secretstore/config.toml
--jsonrpc-cors all
--jsonrpc-interface all
--jsonrpc-hosts all
--jsonrpc-apis all
--base-path /secret-store/
volumes:
- ../networks/secret-store/config/:/etc/parity/secretstore/
- secret-store:/secret-store/
- ../networks/secret-store/keys/:/secret-store/keys/secretstore/
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;'

secret-store-signing-node:
image: parity/parity:stable
command:
--chain dev
--light
--jsonrpc-interface all
--jsonrpc-apis secretstore
--jsonrpc-cors all
--keys-path /home/parity/.local/keys
ports:
- 9545:8545
volumes:
- ../networks/secret-store/keys:/home/parity/.local/keys/DevelopmentChain:ro
networks:
backend:
ipv4_address: 172.15.0.18

0 comments on commit 2b610fe

Please sign in to comment.