1
+ # A composition of services that are needed to run Alchemy
2
+ # This is for DEVELOPMENT, not production
3
+
1
4
version : " 3"
2
5
services :
3
6
alchemy :
@@ -18,27 +21,77 @@ services:
18
21
- ./entry.sh:/entry.sh
19
22
ports :
20
23
- 3000:3000
21
- - 8545 :8545
24
+ - 8546 :8545
22
25
# ganache:
23
26
# image: daostack/ganache:0.0.0-alpha.50-v3
24
27
# command: --hostname=0.0.0.0
25
28
alchemy-server :
26
29
build :
27
- dockerfile : alchemy-server.dockerfile
28
30
context : ./docker/alchemy-server
29
31
depends_on :
30
- - postgres
32
+ - postgres4alchemyserver
31
33
links :
32
- - postgres
34
+ - postgres4alchemyserver
33
35
ports :
34
36
- 3001:3001
35
37
working_dir : /alchemy-server/
36
38
environment :
37
- WAIT_HOSTS : postgres :5432
39
+ WAIT_HOSTS : postgres4alchemyserver :5432
38
40
39
- postgres :
41
+ postgres4alchemyserver :
40
42
build :
41
- dockerfile : postgres.dockerfile
42
43
context : ./docker/postgres/
43
44
ports :
44
45
- 5433:5432
46
+ subgraph :
47
+ build :
48
+ context : ./node_modules/@daostack/subgraph
49
+ links :
50
+ - ipfs
51
+ - graph-node
52
+ - ganache
53
+ environment :
54
+ ethereum : http://ganache:8545
55
+ test_mnemonic : behave pipe turkey animal voyage dial relief menu blush match jeans general
56
+ node_http : http://graph-node:8000/by-name/daostack/graphql
57
+ node_ws : http://graph-node:8001/by-name/daostack
58
+ node_rpc : http://graph-node:8020
59
+ ipfs_host : ipfs
60
+ ipfs_port : 5001
61
+ WAIT_HOSTS : ipfs:5001, graph-node:8020
62
+ graph-node :
63
+ image : graphprotocol/graph-node:v0.4.1
64
+ ports :
65
+ - 8000:8000
66
+ - 8001:8001
67
+ - 8020:8020
68
+ links :
69
+ - ipfs
70
+ - postgres4graphnode
71
+ - ganache
72
+ environment :
73
+ postgres_host : postgres4graphnode:5432
74
+ postgres_user : postgres
75
+ postgres_pass : ' letmein'
76
+ postgres_db : postgres
77
+ ipfs : ipfs:5001
78
+ ethereum : development:http://ganache:8545
79
+ ipfs :
80
+ image : ipfs/go-ipfs
81
+ ports :
82
+ - 5001:5001
83
+ postgres4graphnode :
84
+ image : postgres
85
+ ports :
86
+ - 5435:5432
87
+ environment :
88
+ POSTGRES_PASSWORD : ' letmein'
89
+ ganache :
90
+ image : trufflesuite/ganache-cli:v6.2.1
91
+ ports :
92
+ - 8545:8545
93
+ command : >
94
+ --deterministic
95
+ --mnemonic "behave pipe turkey animal voyage dial relief menu blush match jeans general"
96
+ --gasLimit 8000000
97
+ --networkId 1543492792088
0 commit comments