-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
126 lines (122 loc) · 3.13 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
version: "3"
services:
acapy:
image: ghcr.io/indicio-tech/aries-cloudagent-python:0.12.1-credo-json-ld
#image: acapy-test
ports:
- "3001:3001"
environment:
RUST_LOG: warn
command: >
start
--label ACA-Py
--inbound-transport http 0.0.0.0 3000
--outbound-transport http
--endpoint http://acapy:3000
--admin 0.0.0.0 3001
--admin-insecure-mode
--no-ledger
--wallet-type askar
--wallet-name alice
--wallet-key insecure
--auto-provision
--log-level debug
--debug-webhooks
healthcheck:
test: curl -s -o /dev/null -w '%{http_code}' "http://localhost:3001/status/live" | grep "200" > /dev/null
start_period: 30s
interval: 7s
timeout: 5s
retries: 5
alice:
#image: ghcr.io/hyperledger/aries-cloudagent-python:py3.9-nightly
image: acapy-test
ports:
- "3002:3001"
environment:
RUST_LOG: warn
command: >
start
--label Alice
--inbound-transport http 0.0.0.0 3000
--outbound-transport http
--endpoint http://alice:3000
--admin 0.0.0.0 3001
--admin-insecure-mode
--no-ledger
--wallet-type askar
--wallet-name alice
--wallet-key insecure
--auto-provision
--log-level debug
--debug-webhooks
healthcheck:
test: curl -s -o /dev/null -w '%{http_code}' "http://localhost:3001/status/live" | grep "200" > /dev/null
start_period: 30s
interval: 7s
timeout: 5s
retries: 5
robert:
image: ghcr.io/hyperledger/aries-cloudagent-python:py3.9-0.11.0
ports:
- "3003:3001"
environment:
RUST_LOG: warn
command: >
start
--label "Robert Sr"
--inbound-transport http 0.0.0.0 3000
--outbound-transport http
--endpoint http://robert:3000
--admin 0.0.0.0 3001
--admin-insecure-mode
--no-ledger
--wallet-type askar
--wallet-name robert
--wallet-key insecure
--auto-provision
--log-level debug
--debug-webhooks
healthcheck:
test: curl -s -o /dev/null -w '%{http_code}' "http://localhost:3001/status/live" | grep "200" > /dev/null
start_period: 30s
interval: 7s
timeout: 5s
retries: 5
afj:
image: afj-json-rpc
build: afj
ports:
- "3000:3000"
environment:
AFJ_MESSAGE_PORT: 3001
AFJ_ENDPOINT: "http://afj:3001"
volumes:
- ./afj/index.ts:/usr/src/app/index.ts:z
healthcheck:
test: nc -z 0.0.0.0 3000
start_period: 1s
interval: 3s
timeout: 5s
retries: 5
tests:
container_name: runner
build: .
environment:
AFJ_HOST: afj
AFJ_PORT: 3000
ACAPY: http://acapy:3001
ALICE: http://alice:3001
ROBERT: http://robert:3001
volumes:
- ./tests:/usr/src/app/tests:z
entrypoint: pdm run pytest
depends_on:
acapy:
condition: service_healthy
afj:
condition: service_healthy
alice:
condition: service_healthy
robert:
condition: service_healthy