forked from Indicio-tech/acapy-minimal-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
119 lines (115 loc) · 3.32 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
version: "3"
services:
alice:
image: bcgovimages/aries-cloudagent:py36-1.16-1_1.0.0-rc0
# image: acapy-test-image
# build:
# context: .
# dockerfile: Dockerfile.acapy
# args:
# acapy_url: https://github.com/Indicio-tech/aries-cloudagent-python@c1fed3c13d33e65979b08dd1eaf79dc84e3ce504
ports:
- "3001:3001"
command: >
start -it http 0.0.0.0 3000
--label Alice
-ot http
-e http://alice:3000
--admin 0.0.0.0 3001 --admin-insecure-mode
--log-level debug
--webhook-url http://echo:3002/webhook
--genesis-url https://raw.githubusercontent.com/Indicio-tech/indicio-network/main/genesis_files/pool_transactions_demonet_genesis
--wallet-type askar
--wallet-name alice
--wallet-key insecure
--auto-provision
healthcheck:
test: curl -s -o /dev/null -w '%{http_code}' "http://localhost:3001/status/live" | grep "200" > /dev/null
start_period: 30s
interval: 3s
timeout: 5s
retries: 5
depends_on:
echo:
condition: service_healthy
bob:
image: bcgovimages/aries-cloudagent:py36-1.16-1_1.0.0-rc0
# image: acapy-test-image
# build:
# context: .
# dockerfile: Dockerfile.acapy
# args:
# acapy_url: https://github.com/Indicio-tech/aries-cloudagent-python@c1fed3c13d33e65979b08dd1eaf79dc84e3ce504
ports:
- "3002:3001"
command: >
start -it http 0.0.0.0 3000
--label Bob
-ot http
-e http://bob:3000
--admin 0.0.0.0 3001 --admin-insecure-mode
--log-level debug
--webhook-url http://echo:3002/webhook
--genesis-url https://raw.githubusercontent.com/Indicio-tech/indicio-network/main/genesis_files/pool_transactions_demonet_genesis
--wallet-type askar
--wallet-name bob
--wallet-key insecure
--auto-provision
healthcheck:
test: curl -s -o /dev/null -w '%{http_code}' "http://localhost:3001/status/live" | grep "200" > /dev/null
start_period: 30s
interval: 3s
timeout: 5s
retries: 5
depends_on:
echo:
condition: service_healthy
echo:
image: ghcr.io/indicio-tech/echo-agent:0.1.2
ports:
- "3003:3002"
command: --host 0.0.0.0 --port 3002 --log-level debug
healthcheck:
test: nc -z localhost 3002
start_period: 5s
interval: 1s
timeout: 5s
retries: 5
controller:
container_name: controller
build:
context: .
environment:
- ALICE=http://alice:3001
- BOB=http://bob:3001
- ECHO_ENDPOINT=http://echo:3002
volumes:
- ./controller:/usr/src/app/controller:z
depends_on:
echo:
condition: service_healthy
alice:
condition: service_healthy
bob:
condition: service_healthy
tests:
container_name: juggernaut
build:
context: .
args:
install_flags: ""
environment:
- ISSUER=http://alice:3001
- HOLDER=http://bob:3001
- ECHO_ENDPOINT=http://echo:3002
volumes:
- ./controller:/usr/src/app/controller:z
- ./tests:/usr/src/app/tests:z
entrypoint: "poetry run pytest"
depends_on:
echo:
condition: service_healthy
alice:
condition: service_healthy
bob:
condition: service_healthy