This repository has been archived by the owner on Feb 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
162 lines (156 loc) · 4.62 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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
version: '3'
services:
holder:
image: bcgovimages/aries-cloudagent:py36-1.16-1_0.7.4
ports:
- 3000:3000
- 3001:3001
volumes:
- ./configs:/home/indy/configs:z
command: >
start
-e http://holder:3000
--webhook-url http://webhook-listener:8080
--label holder
--inbound-transport http 0.0.0.0 3000
--outbound-transport http
--genesis-url https://raw.githubusercontent.com/Indicio-tech/indicio-network/master/genesis_files/pool_transactions_testnet_genesis
--admin 0.0.0.0 3001
--admin-insecure-mode
--debug-connections
--preserve-exchange-records
--wallet-type askar
--wallet-name default
--wallet-key insecure
--log-level debug
--auto-provision
--notify-revocation
--monitor-revocation-notification
healthcheck:
test: curl -s -o /dev/null -w '%{http_code}' "http://localhost:3001/status/live" | grep "200" > /dev/null
start_period: 10s
interval: 5s
timeout: 10s
retries: 10
depends_on:
- tails
- webhook-listener
issuer:
image: bcgovimages/aries-cloudagent:py36-1.16-1_0.7.4
ports:
- 3002:3000
- 3003:3001
volumes:
- ./configs:/home/indy/configs:z
command: >
start
-e http://issuer:3000
--tails-server-base-url http://tails:6543
--webhook-url http://webhook-listener:8080
--label issuer
--inbound-transport http 0.0.0.0 3000
--outbound-transport http
--genesis-url https://raw.githubusercontent.com/Indicio-tech/indicio-network/master/genesis_files/pool_transactions_testnet_genesis
--admin 0.0.0.0 3001
--admin-insecure-mode
--debug-connections
--preserve-exchange-records
--wallet-type askar
--wallet-name default
--wallet-key insecure
--log-level debug
--auto-provision
--notify-revocation
--monitor-revocation-notification
healthcheck:
test: curl -s -o /dev/null -w '%{http_code}' "http://localhost:3001/status/live" | grep "200" > /dev/null
start_period: 10s
interval: 5s
timeout: 10s
retries: 10
depends_on:
- tails
- webhook-listener
verifier:
image: bcgovimages/aries-cloudagent:py36-1.16-1_0.7.4
ports:
- 3004:3000
- 3005:3001
volumes:
- ./configs:/home/indy/configs:z
command: >
start
-e http://verifier:3000
--tails-server-base-url http://tails:6543
--webhook-url http://webhook-listener:8080
--label verifier
--inbound-transport http 0.0.0.0 3000
--outbound-transport http
--genesis-url https://raw.githubusercontent.com/Indicio-tech/indicio-network/master/genesis_files/pool_transactions_testnet_genesis
--admin 0.0.0.0 3001
--admin-insecure-mode
--debug-connections
--preserve-exchange-records
--wallet-type askar
--wallet-name default
--wallet-key insecure
--log-level debug
--auto-provision
--notify-revocation
--monitor-revocation-notification
healthcheck:
test: curl -s -o /dev/null -w '%{http_code}' "http://localhost:3001/status/live" | grep "200" > /dev/null
start_period: 10s
interval: 5s
timeout: 10s
retries: 10
depends_on:
- tails
- webhook-listener
tails:
image: ghcr.io/bcgov/tails-server:latest
ports:
- 6543:6543
environment:
- GENESIS_URL=https://raw.githubusercontent.com/Indicio-tech/indicio-network/master/genesis_files/pool_transactions_testnet_genesis
command: >
tails-server
--host 0.0.0.0
--port 6543
--storage-path /tmp/tails-files
--log-level INFO
webhook-listener:
image: mendhak/http-https-echo:18
environment:
- HTTP_PORT=8080
demo:
build:
context: .
dockerfile: ./docker/Dockerfile.demo
environment:
HOLDER: "http://holder:3001"
ISSUER: "http://issuer:3001"
VERIFIER: "http://verifier:3001"
depends_on:
holder:
condition: service_healthy
issuer:
condition: service_healthy
verifier:
condition: service_healthy
tests:
build:
context: .
dockerfile: ./docker/Dockerfile.demo
environment:
HOLDER: "http://holder:3001"
ISSUER: "http://issuer:3001"
VERIFIER: "http://verifier:3001"
entrypoint: poetry run pytest
depends_on:
holder:
condition: service_healthy
issuer:
condition: service_healthy
verifier:
condition: service_healthy