-
Notifications
You must be signed in to change notification settings - Fork 10
/
example_docker-compose.yml
55 lines (52 loc) · 2.25 KB
/
example_docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
version: '2.1'
services:
incubed-server:
depends_on:
incubed-parity:
condition : service_healthy
image: slockit/in3-node:latest
volumes:
- ./:/secure # directory where the private key is stored
ports:
- 8500:8500/tcp # open the port 8500 to be accessed by the public
command:
- --privateKey=/secure/MYKEYFILE.json # internal path to the key
- --privateKeyPassphrase=PASSWD # passphrase to unlock the key
- --chain=0x5 # chain
- --rpcUrl=http://172.15.0.3:8545 # URL of the eth client
- --registry=0x635cccc1db6fc9e3b029814720595092affba12f #Incubed Registry contract address
- --logging-level=Error
- --minBlockHeight=6
networks:
incubed_net:
ipv4_address: '172.15.0.2'
incubed-parity:
image: parity/parity:stable
command:
- --auto-update=none # do not automatically update the client
- --pruning=auto
- --pruning-memory=30000 # limit storage
- --chain=goerli
- --jsonrpc-interface=172.15.0.3
- --jsonrpc-port=8545
- --ws-interface=172.15.0.3
- --ws-port=8546
- --jsonrpc-experimental
ports:
- 8545:8545
- 8546:8546
healthcheck:
test: ["CMD-SHELL", "curl --data '{\"method\":\"eth_blockNumber\",\"params\":[],\"id\":1,\"jsonrpc\":\"2.0\"}' -H 'Content-Type: application/json' -X POST http://172.15.0.3:8545"]
interval: 10s
timeout: 10s
retries: 5
networks:
incubed_net:
ipv4_address: '172.15.0.3'
networks:
incubed_net:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.15.0.0/16