-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
161 lines (151 loc) · 4.46 KB
/
docker-compose.yaml
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
version: "3.1"
networks:
single-network:
single-internal:
internal: true
services:
################## Layer1 #######################
layer1:
image: tearust/tea-camellia:fast-0.5.1
container_name: delegate-layer1
ports:
- 9944:9944
- 9933:9933
- 30332:30333
volumes:
- .layer1:/root/.local
- ./data:/tea-camellia
command: bash -c "tea-camellia
--chain canary
--genesis-seed tearust/tea-camellia:fast-0.5.1
--ws-max-connections 10000
--unsafe-ws-external
--rpc-cors all
--genesis-coupons-path /tea-camellia/epoch5.csv
--telemetry-url 'wss://telemetry.polkadot.io/submit/ 0'
--bootnodes /ip4/64.227.105.212/tcp/30333/p2p/12D3KooWNfKaja9MndtqE8p6Vh97ZoyeFM85FTMHP4SZbheDA4aa
--bootnodes /ip4/164.90.159.26/tcp/30333/p2p/12D3KooWQD9iQtYRGGU4tVdW3wkViNh4aA8Jcrok2DuUfiVF2ZWS"
networks:
- single-network
##################### IPFS #####################
ipfs:
image: ipfs/go-ipfs:v0.8.0
container_name: delegate-ipfs
ports:
- 4001:4001
- 5001:5001
- 8080:8080
volumes:
- .ipfs_data:/data/ipfs
- .ipfs:/ipfs/config
environment:
IPFS_SWARM_KEY_FILE: /ipfs/config/swarm.key
entrypoint: []
command: sh -c "/ipfs/config/start_ipfs daemon --migrate --enable-pubsub-experiment"
networks:
- single-network
##################### Orbit #####################
orbitdb:
image: tearust/tea-orbit-db-http-api:v0.0.8
container_name: delegate-orbitdb
depends_on:
- "ipfs"
restart: always
ports:
- 6001:6001
env_file: .env
volumes:
- .orbitdb:/orbitdb
command: ["node", "src/cli.js", "api", "--orbitdb-dir", "/orbitdb", "--no-https", "--http1", "--api-port", "6001"]
environment:
- IPFS_HOST=ipfs
- IPFS_PORT=5001
- SEED=${SEED}
- ADMIN_LIST=${ADMIN_LIST}
- NONCE=epoch5-1
networks:
- single-network
# ################ Adapter ##############
adapter:
image: tearust/adapter:epoch5-0.4
container_name: "delegate-adapter"
depends_on:
- "orbitdb"
ports:
- 8000:8000
- 5011:5011
environment:
IPFS_PORT: 5001
IPFS_SERVER: ipfs
RPC_CLIENTURL: http://parent-instance-client:5010
WAIT_HOSTS: ipfs:5001
WAIT_TIMEOUT: 300
WAIT_SLEEP_INTERVAL: 5
ORBITDB_SERVER: orbitdb
ORBITDB_PORT: 6001
LAYER1_WALLET: https://wallet.teaproject.org
networks:
- single-network
# ################ Simulator ##############
nsm-simulator:
image: tearust/nsm-simulator:layer2-0.3
container_name: "delegate-nsm"
ports:
- 5999:5999
networks:
- single-internal
# ################ Runtime ##############
runtime:
image: tearust/runtime:epoch5-0.1
container_name: "delegate-runtime"
networks:
- single-internal
environment:
VMH_HOST: vmh-server
SIM_CLIENT_URL: http://nsm-simulator:5999
WAIT_HOSTS: nsm-simulator:5999
WAIT_TIMEOUT: 300
WAIT_SLEEP_INTERVAL: 5
vmh-server:
image: tearust/vmh-server:epoch5-0.1
container_name: "delegate-vmh"
networks:
- single-network
- single-internal
environment:
CLIENT_HOST: parent-instance-client
ENCLAVE_HOST: runtime
WAIT_HOSTS: runtime:5006
WAIT_TIMEOUT: 300
WAIT_SLEEP_INTERVAL: 5
parent-instance-client:
image: tearust/parent-instance-client:epoch5-0.1
container_name: "delegate-parent"
networks:
- single-network
volumes:
- .log:/log
environment:
ADAPTER_CLIENT_URL: http://adapter:5011
LOG_FILE: /log/output.log
VMH_HOST: vmh-server
IPFS_HOST: ipfs
IPFS_PORT: 5001
TEA_ID: 3zjLTxJHkEHI6NI4EJ7yoVCwF/OCIG4k/uky5jfC23s=
TEA_ENV_SETTINGS:
MODE:DEV
PUBLIC_URLS:https://tearust.com
FLUENCER_HTTP_MODE:leader-only
RAFT_BOOT_PORT: 5014
JOIN_DEFAULT_RAFT_NETWORK: "false"
LAYER1_NODE_IP: layer1
LAYER1_NODE_PORT: 9944
LAYER1_ACCOUNT: //Alice
ORBITDB_IP: orbitdb
ORBITDB_PORT: 6001
WAIT_HOSTS: vmh-server:5007, adapter:8000, ipfs:5001, layer1:9944
WAIT_TIMEOUT: 300
WAIT_SLEEP_INTERVAL: 5
# entrypoint: /bin/bash
# stdin_open: true # docker run -i
# tty: true # docker run -t