-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
54 lines (46 loc) · 1.27 KB
/
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
version: "3.7"
services:
ganache:
container_name: ganache
image: "trufflesuite/ganache-cli"
ports:
- "8544:8544"
networks:
ocn-dev-net:
ipv4_address: 172.16.238.10
command: ["-m", "candy maple cake sugar pudding cream honey rich smooth crumble sweet treat", "--port", "8544", "--accounts", "20", "--networkId=9", "--gasPrice=1", "--gasLimit=10000000"]
deploy-registry:
container_name: deploy-registry
build:
context: ../ocn-registry
dockerfile: Dockerfile
depends_on:
- ganache
image: "registry-deploy"
networks:
- ocn-dev-net
ocn-node-1:
container_name: ocn-node-1
build:
context: .
dockerfile: Dockerfile
image: "ocn-node"
network_mode: "host"
ports:
- "8080:8080"
ocn-node-2:
container_name: ocn-node-2
build:
context: .
dockerfile: Dockerfile
image: "ocn-node"
network_mode: "host"
ports:
- "8081:8081"
command: ["java", "-jar", "-Dserver.port=8081", "-Docn.node.url=http://localhost:8081", "-Docn.node.privatekey=0x0dbbe8e4ae425a6d2687f1a7e3ba17bc98c673636790f1b8ad91193c05875ef1", "./libs/ocn-node-1.0.0.jar"]
networks:
ocn-dev-net:
ipam:
driver: default
config:
- subnet: "172.16.238.0/24"