forked from trustlines-protocol/end2end
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
146 lines (135 loc) · 3.13 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
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
version: "3.2"
services:
# the helper is only used to populate the shared volume
# please note that we are not able to use bind mounts on circleci unless we
# would use the machine images
helper:
image: ubuntu:18.04
container_name: e2e-helper
volumes:
- shared:/shared
command: ["true"]
relay:
image: trustlines/relay
container_name: relay
environment:
- TRUSTLINES_SYNC_TX_RELAY=1
- PGHOST
- PGUSER
- PGDATABASE
- PGPASSWORD
links:
- "parity:node"
- "postgres:db"
volumes:
- shared:/shared
ports:
- "127.0.0.1:5000:5000"
networks:
- internal
command: ["--config", "/shared/config.toml", "--addresses", "/shared/addresses.json"]
restart: unless-stopped
index:
image: trustlines/py-eth-index
networks:
- internal
links:
- "postgres:db"
- "parity:node"
environment:
- PGHOST
- PGUSER
- PGDATABASE
- PGPASSWORD
restart: unless-stopped
command: runsync --jsonrpc http://node:8545 --waittime 200
createtables:
image: trustlines/py-eth-index
restart: on-failure
networks:
- internal
links:
- "postgres:db"
environment:
- PGHOST
- PGUSER
- PGDATABASE
- PGPASSWORD
command: createtables
init:
image: trustlines/py-eth-index
restart: on-failure
networks:
- internal
links:
- "postgres:db"
- createtables
environment:
- PGHOST
- PGUSER
- PGDATABASE
- PGPASSWORD
volumes:
- shared:/shared
- abi:/abi
command: importabi --contracts /abi/contracts.json --addresses /shared/addresses.json
postgres:
image: postgres
restart: unless-stopped
environment:
- POSTGRES_USER
- POSTGRES_PASSWORD
networks:
- internal
parity:
image: parity/parity:v2.6.3-beta
container_name: parity
restart: unless-stopped
networks:
- internal
expose:
- "8545"
ports:
- "127.0.0.1:8545:8545"
volumes:
- shared:/shared
command: >
--config=dev-insecure
--jsonrpc-cors=*
--jsonrpc-interface=0.0.0.0
--unlock=0x00a329c0648769a73afac7f9381e08fb43dbea72
--password=/shared/parity-dev-pw
--jsonrpc-server-threads=8
# Passing the --jsonrpc-server-threads argument above made the
# bridge end2end tests work, see
# https://github.com/trustlines-protocol/blockchain/commit/c821f16c3ec9f54e15fa89f4c8dae6ffa64ded01
contracts:
image: trustlines/contracts
command: ["test", "--file", "/shared/addresses.json", "--jsonrpc", "http://node:8545"]
container_name: contracts
links:
- "parity:node"
volumes:
- shared:/shared
- type: volume
source: abi
target: /opt/contracts/trustlines-contracts/build
volume:
nocopy: false
networks:
- internal
e2e:
image: trustlines/e2e
container_name: e2e
networks:
- internal
links:
- "relay"
volumes:
- shared:/clientlib/tests/e2e-config
networks:
internal:
external: false
volumes:
abi:
shared: