Skip to content

Commit 2b610fe

Browse files
author
Sebastian Gerske
authored
Merge pull request #71 from oceanprotocol/feature/refactor
Refactor to use individual docker compose files
2 parents 8dc9b4b + 958448d commit 2b610fe

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+800
-597
lines changed

.env

-11
This file was deleted.

brizo.env

+2-7
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
11
# Use this file to set the env vars required for Brizo.
22

3-
KEEPER_URL=http://parity-node:8545
4-
LOCAL_CONTRACTS=true
5-
KEEPER_NETWORK_NAME=ocean_poa_net_local
6-
7-
SECRET_STORE_URL=http://secret-store:12001
8-
PARITY_URL=http://parity-node:8545
93
# Set a valid parity address and password to have seamless interaction with the `keeper`
104
PARITY_ADDRESS=0x00bd138abd70e2f00903268f3db08f2d25677c9e
115
PARITY_PASSWORD=node0
126

137
AQUARIUS_URL=http://aquarius:5000
14-
BRIZO_URL=http://brizo:8030
8+
SECRET_STORE_URL=http://secret-store:12001
9+
RPC_URL=http://keeper-node:8545
1510

1611
AZURE_ACCOUNT_NAME=
1712
AZURE_ACCOUNT_KEY=

compose-files/aquarius.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
version: '2.1'
2+
services:
3+
aquarius:
4+
image: oceanprotocol/aquarius:${OCEAN_VERSION:-stable}
5+
ports:
6+
- 5000:5000
7+
networks:
8+
backend:
9+
ipv4_address: 172.15.0.15
10+
depends_on:
11+
- mongodb
12+
environment:
13+
DB_HOSTNAME: mongodb
14+
15+
mongodb:
16+
image: mongo:3.6
17+
command: mongod
18+
networks:
19+
backend:
20+
ipv4_address: 172.15.0.11

compose-files/brizo.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
version: '2.1'
2+
services:
3+
brizo:
4+
image: oceanprotocol/brizo:${OCEAN_VERSION:-stable}
5+
ports:
6+
- 8030:8030
7+
networks:
8+
backend:
9+
ipv4_address: 172.15.0.17
10+
depends_on:
11+
- keeper-node
12+
env_file:
13+
- ${BRIZO_ENV_FILE}
14+
environment:
15+
KEEPER_URL: ${KEEPER_RPC_URL}
16+
LOCAL_CONTRACTS: ${KEEPER_DEPLOY_CONTRACTS}
17+
volumes:
18+
- ${KEEPER_ARTIFACTS_FOLDER}:/usr/local/keeper-contracts:ro

compose-files/keeper_contracts.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
version: '2.1'
2+
services:
3+
keeper-contracts:
4+
image: oceanprotocol/keeper-contracts:${OCEAN_VERSION:-stable}
5+
networks:
6+
backend:
7+
ipv4_address: 172.15.0.14
8+
environment:
9+
DEPLOY_CONTRACTS: ${KEEPER_DEPLOY_CONTRACTS}
10+
LOCAL_CONTRACTS: ${KEEPER_DEPLOY_CONTRACTS}
11+
REUSE_DATABASE: ${GANACHE_REUSE_DATABASE}
12+
DATABASE_PATH: "/ganache-db"
13+
NETWORK_NAME: ${KEEPER_NETWORK_NAME}
14+
KEEPER_RPC_HOST: ${KEEPER_RPC_HOST}
15+
KEEPER_RPC_PORT: ${KEEPER_RPC_PORT}
16+
KEEPER_RPC_URL: ${KEEPER_RPC_URL}
17+
depends_on:
18+
- keeper-node
19+
volumes:
20+
- ${KEEPER_ARTIFACTS_FOLDER}:/keeper-contracts/artifacts/

compose-files/network_volumes.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
version: '2.1'
2+
3+
networks:
4+
backend:
5+
driver: bridge
6+
ipam:
7+
driver: default
8+
config:
9+
- subnet: 172.15.0.1/24
10+
gateway: 172.15.0.1
11+
12+
volumes:
13+
keeper-node:
14+
secret-store:

compose-files/nodes/ganache_node.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: '2.1'
2+
services:
3+
keeper-node:
4+
image: trufflesuite/ganache-cli:latest
5+
command:
6+
-d
7+
ports:
8+
- 8545:8545
9+
networks:
10+
backend:
11+
ipv4_address: 172.15.0.12

compose-files/nodes/kovan_node.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
version: '2.1'
2+
services:
3+
keeper-node:
4+
image: parity/parity:stable
5+
command:
6+
--chain kovan
7+
--base-path /home/parity/base
8+
--keys-path /home/parity/.local/share/io.parity.ethereum/keys
9+
--light
10+
--ws-interface all
11+
--jsonrpc-cors all
12+
--jsonrpc-interface all
13+
--jsonrpc-hosts all
14+
--jsonrpc-apis all
15+
--unsafe-expose
16+
volumes:
17+
- ../networks/kovan/keys:/home/parity/.local/share/io.parity.ethereum/keys/kovan
18+
ports:
19+
- 8545:8545
20+
networks:
21+
backend:
22+
ipv4_address: 172.15.0.12

compose-files/nodes/nile_node.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
version: '2.1'
2+
services:
3+
keeper-node:
4+
image: parity/parity:stable
5+
command:
6+
--config /home/parity/parity/config/config.toml
7+
--db-path /home/parity/chains
8+
--keys-path /home/parity/.local/share/io.parity.ethereum/keys
9+
--base-path /home/parity/base
10+
--engine-signer 0x00bd138abd70e2f00903268f3db08f2d25677c9e
11+
--ws-interface all
12+
--jsonrpc-cors all
13+
--jsonrpc-interface all
14+
--jsonrpc-hosts all
15+
--jsonrpc-apis all
16+
--unsafe-expose
17+
--unlock 0x00bd138abd70e2f00903268f3db08f2d25677c9e
18+
volumes:
19+
- ../networks/nile/config:/home/parity/parity/config
20+
- keeper-node:/home/parity/.local/share/io.parity.ethereum/
21+
- ../networks/nile/authorities/validator0.json:/home/parity/.local/share/io.parity.ethereum/keys/nile/validator.json
22+
- ../networks/nile/keys:/home/parity/.local/share/io.parity.ethereum/keys/nile
23+
- ../networks/nile/authorities/validator0.pwd:/home/parity/parity/validator.pwd
24+
- ../networks/nile/node0.network.key:/home/parity/.local/share/io.parity.ethereum/network/key
25+
ports:
26+
- 8545:8545
27+
networks:
28+
backend:
29+
ipv4_address: 172.15.0.12

compose-files/nodes/spree_node.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
version: '2.1'
2+
services:
3+
keeper-node:
4+
image: parity/parity:stable
5+
command:
6+
--config /home/parity/config/config.toml
7+
--db-path /home/parity/chains
8+
--keys-path /home/parity/.local/keys
9+
--base-path /home/parity/base
10+
--min-gas-price 0
11+
--jsonrpc-cors all
12+
--jsonrpc-interface all
13+
--jsonrpc-hosts all
14+
--jsonrpc-apis all
15+
--unsafe-expose
16+
--unlock 0x00bd138abd70e2f00903268f3db08f2d25677c9e
17+
volumes:
18+
- ../networks/spree/config:/home/parity/config
19+
- ../networks/spree/authorities/validator0.json:/home/parity/.local/keys/spree/validator.json
20+
- ../networks/spree/keys:/home/parity/.local/keys/spree
21+
- ../networks/spree/authorities/validator0.pwd:/home/parity/validator.pwd:ro
22+
- ../networks/spree/node0.network.key:/home/parity/.local/share/io.parity.ethereum/network/key:ro
23+
ports:
24+
- 8545:8545
25+
networks:
26+
backend:
27+
ipv4_address: 172.15.0.12

compose-files/pleuston.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
version: '2.1'
2+
services:
3+
pleuston:
4+
image: oceanprotocol/pleuston:${OCEAN_VERSION:-stable}
5+
networks:
6+
backend:
7+
ipv4_address: 172.15.0.19
8+
ports:
9+
- 3000:3000
10+
depends_on:
11+
- keeper-node
12+
- aquarius
13+
- brizo
14+
environment:
15+
# Need browser to connect to exposed ports
16+
KEEPER_HOST: localhost
17+
AQUARIUS_HOST: localhost
18+
LOCAL_CONTRACTS: ${KEEPER_DEPLOY_CONTRACTS}
19+
volumes:
20+
- ${KEEPER_ARTIFACTS_FOLDER}:/pleuston/node_modules/@oceanprotocol/keeper-contracts/artifacts/:ro

compose-files/secret_store.yml

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
version: '2.1'
2+
services:
3+
secret-store:
4+
image: oceanprotocol/parity-ethereum:master
5+
entrypoint: /opt/parity/parity
6+
command:
7+
--config /etc/parity/secretstore/config.toml
8+
--jsonrpc-cors all
9+
--jsonrpc-interface all
10+
--jsonrpc-hosts all
11+
--jsonrpc-apis all
12+
--base-path /secret-store/
13+
volumes:
14+
- ../networks/secret-store/config/:/etc/parity/secretstore/
15+
- secret-store:/secret-store/
16+
- ../networks/secret-store/keys/:/secret-store/keys/secretstore/
17+
ports:
18+
- 12000:12000
19+
- 12001
20+
networks:
21+
backend:
22+
ipv4_address: 172.15.0.13
23+
24+
secret-store-cors-proxy:
25+
image: nginx:alpine
26+
volumes:
27+
- ../cors-proxy.conf:/etc/nginx/nginx.conf:ro
28+
depends_on:
29+
- secret-store
30+
ports:
31+
- 12001:12001
32+
networks:
33+
backend:
34+
ipv4_address: 172.15.0.16
35+
command: nginx -g 'daemon off;'
36+
37+
secret-store-signing-node:
38+
image: parity/parity:stable
39+
command:
40+
--chain dev
41+
--light
42+
--jsonrpc-interface all
43+
--jsonrpc-apis secretstore
44+
--jsonrpc-cors all
45+
--keys-path /home/parity/.local/keys
46+
ports:
47+
- 9545:8545
48+
volumes:
49+
- ../networks/secret-store/keys:/home/parity/.local/keys/DevelopmentChain:ro
50+
networks:
51+
backend:
52+
ipv4_address: 172.15.0.18

0 commit comments

Comments
 (0)