forked from unlock-protocol/unlock
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.ci.yml
192 lines (176 loc) · 4.09 KB
/
docker-compose.ci.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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
version: '3.2'
services:
eth-node: # hardhat node
image: eth-node
build:
context: ./development/eth-node
# entrypoint: ['node', '/standup/prepare-ganache-for-unlock.js']
ports:
- 8545:8545
smart-contract-extensions: # example of Unlock integrations
image: smart-contract-extensionss
build:
context: ../
target: dev
args:
BUILD_DIR: smart-contract-extensions
smart-contracts: # Image with our contracts
image: smart-contracts
build:
context: ../
target: dev
args:
BUILD_DIR: smart-contracts
unlock-app: # Container for the dashboard
env_file:
- ./${UNLOCK_ENV}.env
image: unlock-app
build:
context: ../
target: dev
args:
BUILD_DIR: unlock-app
ports:
- 3000:3000
expose:
- 3000
unlock-protocol-com: # Container for the static site
env_file:
- ./${UNLOCK_ENV}.env
image: unlock-protocol-com
build:
context: ../
target: dev
args:
BUILD_DIR: unlock-protocol-com
ports:
- 3002:3002
paywall-app: # Container for the paywall application
env_file:
- ./${UNLOCK_ENV}.env
image: paywall-app
build:
context: ../
target: dev
args:
BUILD_DIR: paywall-app
ports:
- 3001:3001
paywall: # Container for the paywall application
env_file:
- ./${UNLOCK_ENV}.env
image: paywall
build:
context: ../
target: dev
args:
BUILD_DIR: packages/paywall
ports:
- 3001:3001
unlock-js: # Container for Unlockjs
image: unlock-js
build:
context: ../
target: dev
args:
BUILD_DIR: packages/unlock-js
env_file:
- ./${UNLOCK_ENV}.env
hardhat-plugin: # Container for @unlock-protocol/hardhat-plugin
image: hardhat-plugin
build:
context: ../
target: dev
args:
BUILD_DIR: packages/hardhat-plugin
env_file:
- ./${UNLOCK_ENV}.env
contracts: # Container for @unlock-protocol/contracts
image: contracts
build:
context: ../
target: dev
args:
BUILD_DIR: packages/contracts
env_file:
- ./${UNLOCK_ENV}.env
wedlocks: # Container for wedlocks
image: wedlocks
build:
context: ../
target: dev
args:
BUILD_DIR: wedlocks
env_file:
- ./${UNLOCK_ENV}.env
integration-tests: # Imagewhich runs integration tests
image: integration-tests
build:
context: ../
target: dev
args:
BUILD_DIR: integration-tests
env_file:
- ./${UNLOCK_ENV}.env
depends_on:
# - eth-node
- unlock-app
- paywall
- locksmith
- unlock-protocol-com
- graph-node
locksmith: # image with locksmith
image: locksmith
build:
context: ../
target: dev
args:
BUILD_DIR: locksmith
env_file:
- ././${UNLOCK_ENV}.env
- ./integration-locksmith.env
command: sh -c './scripts/wait-for.sh postgres:5432 -- yarn db:migrate && yarn start'
ports:
- 8080:8080
depends_on:
- postgres
locksmith-websub:
image: locksmith-websub
build:
context: ../
target: dev
args:
BUILD_DIR: locksmith
env_file:
- ././${UNLOCK_ENV}.env
- ./integration-locksmith.env
command: sh -c './scripts/wait-for.sh postgres:5432 -- yarn db:migrate && yarn websub:start'
depends_on:
- postgres
#############
# Overrides #
#############
graph-node: # subgraph
env_file:
- ././${UNLOCK_ENV}.env
- ./integration-graph-node.env
depends_on:
- ipfs
- postgres
ipfs: # Required for subgraph
image: ipfs/go-ipfs:v0.12.2
ports:
- '5001:5001'
subgraph_deployment: # Image which sets up the subgraph
image: subgraph_deployment
build:
context: ./development
dockerfile: subgraph.dockerfile
command: ['node', './deploy-subgraph.js']
depends_on:
- ipfs
- postgres
- graph-node
postgres: # locksmith the subgraph store data in it
env_file:
- ./${UNLOCK_ENV}.env