This repository has been archived by the owner on Feb 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose-multi-persona.yaml
202 lines (190 loc) · 5.06 KB
/
docker-compose-multi-persona.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
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
193
194
195
196
197
198
199
200
201
202
version: '3'
services:
postgres-inteli-api-alice:
image: postgres:14.1-alpine
container_name: postgres-inteli-api-alice
ports:
- 5432:5432
volumes:
- inteli-api-storage-alice:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_USER=postgres
- POSTGRES_DB=inteli
postgres-identity-service-alice:
image: postgres:14.1-alpine
container_name: postgres-identity-alice
ports:
- 5433:5432
volumes:
- identity-storage-alice:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_USER=postgres
- POSTGRES_DB=dscp
dscp-identity-service-alice:
image: digicatapult/dscp-identity-service:latest
container_name: identity-service-alice
command: /bin/sh -c "
sleep 30 &&
npx knex migrate:latest &&
node app/index.js"
ports:
- 3002:3002
depends_on:
- dscp-node-alice
- postgres-identity-service-alice
environment:
- PORT=3002
- API_HOST=dscp-node-alice
- DB_HOST=postgres-identity-service-alice
- DB_PORT=5432
- DB_NAME=dscp
- DB_USERNAME=postgres
- DB_PASSWORD=postgres
- SELF_ADDRESS=5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty
- AUTH_TYPE=${AUTH_TYPE:-NONE}
- EXTERNAL_ORIGIN=http://localhost:3002
dscp-node-alice:
image: digicatapult/dscp-node:latest
container_name: node-alice
command:
--base-path /data/
--alice
--unsafe-ws-external
--unsafe-rpc-external
--rpc-cors all
--node-key 0000000000000000000000000000000000000000000000000000000000000001
ports:
- 30333:30333
- 9944:9944
- 9933:9933
restart: on-failure
dscp-api-alice:
image: digicatapult/dscp-api:latest
container_name: dscp-api-alice
ports:
- 3001:3001
depends_on:
- dscp-node-alice
environment:
- PORT=3001
- API_HOST=dscp-node-alice
- API_PORT=9944
- USER_URI=//Alice
- IPFS_HOST=ipfs
- IPFS_PORT=5001
- LOG_LEVEL=trace
- AUTH_TYPE=${AUTH_TYPE:-NONE}
- EXTERNAL_ORIGIN=http://localhost:3001
restart: on-failure
postgres-inteli-api-bob:
image: postgres:14.1-alpine
container_name: postgres-inteli-api-bob
ports:
- 6432:5432
volumes:
- inteli-api-storage-bob:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_USER=postgres
- POSTGRES_DB=inteli
postgres-identity-service-bob:
image: postgres:14.1-alpine
container_name: postgres-identity-bob
ports:
- 6433:5432
volumes:
- identity-storage-bob:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_USER=postgres
- POSTGRES_DB=dscp
dscp-identity-service-bob:
image: digicatapult/dscp-identity-service:latest
container_name: identity-service-bob
command: /bin/sh -c "
sleep 30 &&
npx knex migrate:latest &&
node app/index.js"
ports:
- 4002:3002
depends_on:
- postgres-identity-service-bob
- dscp-node-bob
environment:
- PORT=3002
- API_HOST=dscp-node-bob
- DB_HOST=postgres-identity-service-bob
- DB_PORT=5432
- DB_NAME=dscp
- DB_USERNAME=postgres
- DB_PASSWORD=postgres
- SELF_ADDRESS=5FLSigC9HGRKVhB9FiEo4Y3koPsNmBmLJbpXg2mp1hXcS59Y
- AUTH_TYPE=${AUTH_TYPE:-NONE}
- EXTERNAL_ORIGIN=http://localhost:4002
dscp-node-bob:
image: digicatapult/dscp-node:latest
container_name: node-bob
command:
--base-path /data/
--bob
--unsafe-ws-external
--unsafe-rpc-external
--rpc-cors all
--node-key 0000000000000000000000000000000000000000000000000000000000000002
ports:
- 31333:30333
- 10044:9944
- 10033:9933
restart: on-failure
dscp-api-bob:
image: digicatapult/dscp-api:latest
container_name: dscp-api-bob
ports:
- 4001:3001
depends_on:
- dscp-node-bob
environment:
- PORT=3001
- API_HOST=dscp-node-bob
- API_PORT=9944
- USER_URI=//Bob
- IPFS_HOST=ipfs
- IPFS_PORT=5001
- LOG_LEVEL=trace
- AUTH_TYPE=${AUTH_TYPE:-NONE}
- EXTERNAL_ORIGIN=http://localhost:4001
restart: on-failure
dscp-node-charlie:
image: digicatapult/dscp-node:latest
container_name: node-charlie
command:
--base-path /data/
--charlie
--unsafe-ws-external
--unsafe-rpc-external
--rpc-cors all
--node-key 0000000000000000000000000000000000000000000000000000000000000003
ports:
- 32333:30333
- 10144:9944
- 10133:9933
restart: on-failure
ipfs:
image: ipfs/go-ipfs:v0.13.1
container_name: ipfs
environment:
- |
IPFS_SWARM_KEY=/key/swarm/psk/1.0.0/
/base16/
0000000000000000000000000000000000000000000000000000000000000000
ports:
- 4000:4001
- 8080:8080
- 5001:5001
volumes:
inteli-api-storage-alice:
identity-storage-alice:
inteli-api-storage-bob:
identity-storage-bob: